Dozens of Boko Haram gunmen riding on motorcycles and in pickup trucks stormed a town in Nigeria's restive northeast, killing 27 people and razing some 300 homes, a local official said Monday.

"Gunmen numbering about 70 riding on about 15 motorcycles and hilux (trucks) attacked the village late Thursday," said Baba Shehu, an official with the local government in Bama, an area repeatedly attacked by the insurgents.

"They shot down 27 persons and injured 12... About 300 houses were burnt," he added.