Some 26 people were arrested for being in Kenya illegally and four of them were charged in court on terrorism-related charges.