The attack on Zango village, in the Gulani district some 150 kilometres (94 miles) south of the Yobo state capital, Damaturu, happened overnight on Tuesday to Wednesday, said Aisami Mamman.
It came two weeks after a similar attack on two nearby villages left at least 20 dead, he added.
The motive for the attack was not immediately clear but previous strikes have seen Boko Haram steal cattle or foodstuffs.
The hit-and-run attack has been a trademark of the Islamic State group affiliate but such incidents have become rarer because of a concerted military counter-offensive in the northeast.
Troops have over the last year wrested back territory lost to the militants in 2014, scattering fighters and cutting off their supply lines.
12