Boko Haram gunmen killed eight people when they attacked two villages in restive northeast Nigeria in an attempt to steal livestock on Friday, local militia said. The jihadists moved into Modu Ajiri and Bulama Kayiri villages in Borno state to take cattle and sheep but the villagers put up a fight to save their livestock."Fighting erupted when the villagers tried to stop the attackers," local militia spokesperson Bunu Bukar Mustapha told AFP. "Eight people were killed in the fight and four others were injured," he said from the state capital Maiduguri, 90km away. The militants opened fire on the villagers who were armed with machetes, bows and arrows, cudgels and swords, he said. "The villagers were no match for the Boko Haram terrorists who came with guns," said militia leader Babakura Kolo, who gave a similar toll. * Sign up to News24's top Africa news in your inbox: SUBSCRIBE TO THE HELLO AFRICA NEWSLETTERFOLLOW News24 Africa on Twitter and Facebook. After the attack, the jihadists herded all the stolen livestock into the bush, he said. He said residents of the two villages had fled for fear of renewed attack by the insurgents. Mustapha said the bodies of the victims were recovered by soldiers and militia who took them to the nearby town of Nganzai, some 10km away. Boko Haram has intensified attacks especially against military targets in recent months. On Wednesday, scores of Islamists attacked a military base in Damasak in the far north of Borno state. They were repelled with aerial support after an hours-long battle. Boko Haram's nine-year insurgency has spilled over into neighbouring Chad, Niger and Cameroon, killing thousands of people and displacing over two million.