Niger’s military says it is regaining control after a mutiny in Niamey after gun fire was heard in the capital.