At least a dozen Niger soldiers were killed following an attack by hundreds of armed insurgents on motorbikes in the country's southwest on Thursday morning, the West African nation's defence 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 about 190 km from the capital Niamey in Kandadji, near the tri-border zone of Mali, Burkina Faso and Niger.
Earlier on Thursday, three sources including a senior military officer, who requested anonymity because they are not authorised to speak to the media, told Reuters that at least ten soldiers were killed.
Neither the sources nor the defence ministry say which group was responsible.
The defence ministry statement said around a hundred insurgents were killed and their motorbikes and arms were 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. Neighbouring 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.
At least 17 soldiers were killed in another attack in southwestern Niger in mid-August.
France said on Sunday 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.