At least 23 people were killed in a Boko Haram attack in the Mozogo district in Cameroon's Far North Region, an official said.