The attack took place in Kukum-Daji village in Nigeria's Kaura distric, targeting a wedding party at one of the community houses.
President Ibrahim Boubacar Keita, who still has three years left in his final term, has faced demonstrations by tens of thousands seeking his resignation since early June.
The gang opened fire on the soldiers who were on foot in a forested part of the Jibia district in Katsina state, the sources said, speaking on condition of anonymity.
President Ibrahim Boubacar Keita, who still has three years left in his final term, has faced demonstrations by tens of thousands seeking his resignation since early June in this volatile West African nation.
The new initiative was announced as military operations have failed to end the killings and local officials have tried repeated negotiations to broker peace in the restive northwestern Nigeria.
The June 5 Movement has triggered a show-down with the government with unflinching demands that President Keita resign over his perceived failures in tackling the dire economy and eight-year conflict in Mali.
At least three people have been killed and more than 70 others injured during two days of civil unrest. Protesters demand resignation of President Ibrahim Boubacar Keita over economic woes and perceived government corruption.
Latest developments have marked a major escalation in the growing movement against President Ibrahim Boubacar Keita.
There was no immediate claim of responsibility for the attack, though it comes not long after a splinter faction of Boko Haram warned civilians that they could be targeted if they helped humanitarian groups or the military.
Officials say the attacks were carried out by militants, who often say they are defending Fulani herders against rival Dogon farmers but no group has claimed responsibility.
The deadliest attack since March 2016 follows a joint military operation launched by Ivory Coast and Burkina Faso last month to tackle the expanding threat from militants linked to al Qaeda and Daesh in the Sahel region.
Fighters from Daesh West Africa Province drove into remote Felo village in Gubio district in the early afternoon, shooting fleeing residents and running them over with their vehicles.
Subscribe to our Youtube channel for all latest in-depth, on the ground reporting from around the world.
Copyright © 2020 TRT World.