At least a dozen Niger soldiers were killed in connection with an attack by hundreds of armed insurgents on motorbikes in the country's southwest on Thursday morning, the West African nation's defense ministry said in a statement.
Seven soldiers were killed in combat while five others died in an accident while driving to reinforce the unit that had come under attack, the statement said.
The attack took place in Kandadji, about 190 kilometers from the capital, Niamey, near the tri-border zone of Mali, Burkina Faso and Niger that has been the epicenter of Islamist insurgencies in the Sahel region in the last few years.
Earlier on Thursday, three sources including a senior military officer, who requested anonymity because they were not authorized to speak to reporters, told Reuters that at least 10 soldiers had been killed.
Neither the sources nor the defense ministry would say which group was responsible. Local affiliates of al-Qaida and Islamic State are active in the region and frequently attack soldiers and civilians.
The defense ministry statement said about a hundred insurgents had been killed and that their motorbikes and arms had been destroyed. It gave no further details.
Two security sources said the army responded to the attack with ground troops as well as helicopters, one of which was hit but was able to return to its base.
Niger is run by a military junta that seized power in a coup in July, partly out of discontent at the worsening security situation. Neighboring Mali and Burkina Faso have each had two coups in the last three years.
However, security analysts say attacks had been falling in Niger under ousted President Mohamed Bazoum, who had tried to engage with Islamists and the rural communities where they are rooted.
At least 17 soldiers were killed in another attack in southwestern Niger in mid-August.
France said on Sunday that it would withdraw its 1,500 troops from Niger before the end of the year, after weeks of pressure from the junta and popular demonstrations against the former colonial ruler, which had forces there to fight the insurgents.
On Thursday, several hundred pro-junta supporters gathered again in front of the French military base in Niamey to demand that the troops leave.