Gunfire and explosions erupted in Niamey as soldiers struck key sites, seized the airport, and clashed with guards before security forces regained control.