Soldiers in the West African country of Niger have announced a coup on national TV.
They said they had dissolved the constitution, suspended all institutions and closed the nation's borders.
Niger President Mohamed Bazoum has been held by troops from the presidential guard since early on Wednesday.
He was promised Washington's "unwavering support" in a call from US Secretary of State Antony Blinken.
UN Secretary General António Guterres also said he had spoken to the president and offered the UN's full support to the uranium-rich country.
Mr Bazoum is a key Western ally in the fight against Islamist militancy in West Africa.
Two neighbouring countries, Mali and Burkina Faso, have experienced coups triggered by jihadist uprisings in recent years.
In both countries the new military leaders have fallen out with France, the former colonial power, which also formerly ruled Niger - a vast, arid country on the edge of the Sahara desert and one of the poorest nations in the world.
Mr Bazoum's whereabouts are unclear but in a statement on Twitter on Thursday morning he said the "hard-won gains will be safeguarded" and that Nigeriens who love democracy will see to it.
Foreign Minister Hassoumi Massoudou has declared himself the head of state and called on all democrats to "make this adventure fail".
In the TV announcement on Wednesday, Col Maj Amadou Abdramane, alongside nine other uniformed soldiers behind him, said: "We, the defence and security forces... have decided to put an end to the regime you know.
"This follows the continuing deterioration of the security situation, and poor economic and social governance."
He also said that all of the country's institutions had been suspended and that the heads of the ministries would take care of day-to-day business.
"All external partners are asked not to interfere," he went on. "Land and air borders are closed until the situation has stabilised."
He added a night curfew would take effect from 22:00 until 05:00 local time until further notice.
Col Maj Abdramane said the soldiers were acting for the National Council for the Safeguard of the Homeland (CNSP).
This coup is yet further bad news for French and Western efforts to restore stability to the part of West Africa known as the Sahel. When neighbouring Mali chose to partner up with Russia's Wagner Group in place of the French, Paris moved its centre of operations in the region to Niger.
This coup, even if it turns out to be short-lived, has shown that even Niger cannot necessarily be relied on to be a permanent safe base. Western influence in the region is shrinking like a water pool in the dry season.
The governments in Burkina Faso, Central African Republic (CAR) and Mali have all decided they would rather work with Russia's brutal Wagner mercenaries than any Western force. Wagner's primary interests in Africa have appeared to be more about enriching themselves and extending the Kremlin's influence than following the Western goals of trying to nurture better governance.
For the two major insurgent groups in the region, those linked to so-called Islamic State and al-Qaeda, this is good news. They thrive on instability, poor governance and local resentment of the government. So a coup in Niger is likely to further hamper efforts to contain them.
After the soldiers' TV announcement Mr Blinken called for the release of President Bazoum.
He told a news conference in New Zealand that "what it clearly constitutes is an effort to seize power by force and to disrupt the constitution".
In neighbouring Mali, heavily armed Russian Wagner mercenaries are helping the military regime to fight jihadist insurgents. Niger's unrest comes on top of existing Western anxiety about Wagner operations and the Sahel region's instability.
President Vladimir Putin, keen to expand Russian influence in Africa, is hosting African leaders in St Petersburg on Thursday.
The West African economic bloc Ecowas has said it "condemns in the strongest terms the attempt to seize power by force" in Niger.
On behalf of Ecowas, Benin's President Patrice Talon has arrived in the capital Niamey on a mediation mission.
Mr Talon said "all means" would be used, if necessary to restore constitutional order in Niger, "but the ideal would be for everything to be done in peace and harmony".
Earlier on Wednesday, crowds in Niamey took to the streets in support of Mr Bazoum. A BBC reporter also saw heavily armed forces loyal to the president stationed around the national broadcaster.
The city was mostly peaceful, although soldiers behind the coup fired shots to break up the protests.
Niger is grappling with two Islamist insurgencies - one in the south-west, which swept in from Mali in 2015, and the other in the south-east, involving jihadists based in north-eastern Nigeria.
President Bazoum, who was democratically elected in 2021, is a close ally of France, and other Western nations.
Niger has experienced four coups since independence from France in 1960, as well as numerous attempted coups.