The attacks happened yesterday in the northeastern state of Borno, near the Islamists' Sambisa Forest hideout, where the army is looking to flush out remnants of the rebel group.
President Muhammadu Buhari, who has made crushing the rebellion a priority, in December said a sustained counter-offensive had reduced the group's ability to strike effectively.
The first attack happened in Izgeki village, said one resident, who gave his name as Isyaku, from the town of Mubi in neighbouring Adamawa state.
"The attack forced villagers to cross the river into Izghe. The gunmen pursued them. One of them who had a suicide belt on him blew himself up near the market, killing five people."
More From This Section
Izghe was previously attacked in February 2014 where more than 100 people were killed as the rebels torched homes, opened fire and set off explosives.
Thousands of residents fled the attack into Adamawa towards the town of Madagali and elsewhere but following the army's recapture of territory, some managed to return and begin reconstruction.
Ayuba Chibok, an elder in the town of the same name, said there was also an attack in the nearby village of Nchiha at about 10:00 pm (2100 GMT) yesterday.
"Luckily no-one was hurt but they (Boko Haram gunmen) looted food and burnt a large part of the village," he added. Residents managed to flee.
Boko Haram kidnapped some 276 girls from their school in Chibok in April 2014 in a daring raid that captured world attention. Fifty seven escaped soon afterwards but 219 are still being held.