Thirty soldiers from Niger and two from Nigeria have been killed in a Boko Haram attack by "hundreds of assailants" on the southeastern town of Bosso close to the border with Nigeria, the Niger defence ministry says.
"The counter-offensive conducted early this morning helped to retake control of all the positions in the city of Bosso. The situation is under control", the ministry added on Saturday (local time).
"A sweep is ongoing in the area with the mobilisation of all land and air means".
Seven others from Niger and eight from Nigeria were injured in Friday's attack, according to the ministry, which reported "several deaths" among the assailants.
Bosso is part of the Diffa region, which is home to many refugees and internally displaced people who have sought to avoid Boko Haram violence elsewhere.
The region has been targeted numerous times in attacks blamed on the militants.
Six people were killed last month in the village of Yebi, 4km from Bosso, in an attack thought to have been carried out by Boko Haram.
The group, headquartered across the border in northeastern Nigeria, wants to create an emirate and impose a strict interpretation of Islamic law.