The Al-Qaeda linked Shebab claimed responsibility for the dawn attack at the Sahafi hotel, which is popular with members of parliament, government employees and businessmen.
The Shebab said they were still fighting security forces, but African Union soldiers, battling alongside government troops, said they had taken control of the building.
"Attackers exploded a car bomb to gain entry before going inside... We have reports of 12 dead," policeman Abdulrahid Dahir said.
Shebab commandos then stormed inside, with witnesses reporting intense gunfire and several loud blasts.
"There was a huge explosion and people around the entrance were killed," said Mohamed Ismael, a witness, who was nearby when the attack began.
Shebab insurgents, who are fighting to overthrow the internationally backed government in Mogadishu, have carried out a string of attacks on hotels in the capital.
Like other international hotels in Mogadishu, the Sahafi is heavily fortified.
It was the site of the kidnapping of two French security agents in 2009, one of whom later escaped while the other was killed by the Shebab during a failed rescue attempt in 2013.
Shebab spokesman Abdulaziz Abu Musab claimed the gunmen had overrun the hotel, which is situated near the major K4 roundabout.
"The mujahedeen fighters took control of the Sahafi hotel, where apostates and invading Christians were staying," he said in a statement.
But the African Union mission in Somalia, AMISOM, a 22,000-strong force fighting the Shebab, said they fought alongside government troops and had secured the hotel.
"Somalia government forces and AMISOM have taken control," the AU force said in a brief statement.
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
