The clashes broke out in a barracks close to the city centre shortly before midnight and spread across the city, diplomats and witnesses said, adding that heavy machine guns and mortars were used.
The UN said hundreds of terrified civilians had sought refuge in a United Nation compound, while across the city most residents locked themselves in their homes, an AFP reporter said.
"This was an attempted coup," President Salva Kiir said, blaming his arch-rival -- former vice president Riek Machar who was sacked from the government in July -- for starting the violence.
"I will not allow or tolerate such incidents once again in our new nation. I strongly condemn these criminal actions in the strongest terms possible," he added.
He said an overnight curfew would be imposed from 6:00 pm today to 6:00 am tomorrow and remain in force until further notice. Army spokesman Phil Aguer also told local radio that troops loyal to the president were "in control of the situation".
Statements from the US and British embassies in Juba urged their nationals to avoid unnecessary movements. The US embassy said there hade been "incidents and sporadic gunfire in multiple locations across Juba" throughout the night.
A diplomat in the city said troops loyal to the president had been posted at major intersections. Civil aviation and airline sources also said that Juba airport had been shut indefinitely, while the country's borders with Uganda and Kenya were reportedly shut.
Oil-rich but impoverished South Sudan won its independence in 2011 after its people voted overwhelmingly in a referendum to split from the north and form a new nation.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
