"They [Boko Haram militants] killed 12 people in Akida village and nine others in Mbuta village during a raid," community leader, Mustapha Abbagini, said on Friday.
Witnesses said the Takfiri militants also destroyed shops and homes near the key city of Maiduguri on Thursday morning, Press TV said.
Abbagini also said Boko Haram militants attacked Akid, located some 25 kilometers (some 15.5 miles) from Maiduguri, early Thursday when villagers were asleep.
He added that the terrorists attacked Mbuta after they set homes and businesses on fire.
The two attacks came before a female terrorist in northern Nigeria detonated explosives at a crowded market place in the city of Biu, which is plagued by Boko Haram violence. At least seven were killed.
The development comes as Nigeria and its neighbors pledged earlier in the week to create an 8,700-strong force to battle the Boko Haram terror campaign, which has been spilling over beyond the country's borders. African Union leaders are to submit a relevant plan to the UN Security Council for approval.
Escalating terror by the Takfiri militants has killed at least 13,000 people and left more than a million others homeless since 2009.
A major offensive with warplanes and ground forces from Chad and Nigeria has already forced the militants out of a dozen Nigerian towns and cities.