The junta in Niger on Sunday said it had information that “a foreign power” was preparing to attack the country, after military chiefs from Ecowas, a bloc of 15 countries including Nigeria, Senegal, Togo and Ghana, drew up a detailed plan for use of force.