A judge in Kenya has heard a Belgian and a Tunisian plead guilty to charges of being in the country illegally after the pair were arrested near the border with Somalia.

Judge Stephen Riech later Thursday is expected to sentence Belgian Hassan Kafi and Tunisian Mohammed Debarli.

Anti-terror police arrested the two near the Kenyan coastal town of Lamu on Wednesday. The two have denied claims that they were traveling from Somalia to Kenya.

The militant group al-Shabab boasts hundreds of foreign fighters among its ranks. Kenya is a common transit point for fighters hoping to join al-Shabab.