Somali troops have ended the siege of a Mogadishu hotel which was taken by al-Shabab militants on Friday.
At least 14 people were killed and more wounded after US-trained Somali special forces soldiers stormed the building.
Journalists at the scene say they have seen the bodies of both militants and soldiers.
Islamist al-Shabab is linked to al-Qaeda and has been battling the UN-backed government in Somalia since 2006, frequently targeting civilians.
Hussein Ali, a member of Mogadishu's ambulance service, told the Associated Press that there were 28 wounded.
The Somali ambassador to Switzerland, Yusuf Baribari, is among the dead.
Other diplomats escaped by jumping from windows.
The attack began when a suicide bomber detonated his explosives-packed car outside the building.
Hotels in Mogadishu are often targeted by al-Shabab militants, who were driven from the city several years ago but still control southern rural areas.
An al-Shabab spokesman told the BBC that the Maka al-Mukarama hotel was attacked because of its popularity with government officials.
"We don't consider it to be a hotel – it's a government base," he said.
A car bomb went off outside the hotel earlier this month – an attack also claimed by al-Shabab.
Many politicians and businessmen stay at the hotel as it is on the main road linking the presidential palace to the city's airport.
Somalia has been ravaged by conflict for more than two decades.
But thousands of Somalis have been returning from abroad to help rebuild the country as security has improved in recent years.
African Union troops have been helping the UN-backed government retake territory from the militants.
- Task force destroys excavators allegedly belonging to NPP Women’s Organiser
- Mahama’s ‘dumsor’ is different from Akufo-Addo’s – Kweku Awotwi
- Dr. Adoma Dwomo-Fokuo Odame: Dear Sam George, red is the only colour that matters
- Ghanaians to re-register SIM cards in June or risk losing phone numbers
- 23-year-old arrested for attempting to sacrifice his nephew for money
- Armed robbers jailed for robbing, raping pregnant woman
- Leicester issue Chelsea apology over Daniel Amartey FA Cup actions
- We pay ‘big money’ taxes and yet they burn our equipment – XtraGold Mining Company
- “I’m not proud of it” – referee for Hearts v Sharks game apologises for errors
- Galamsey: Desilting and dredging of the Offin river underway
Message from the Morning Man: The Demon Judges
Ghana will enforce Covid-19 restrictions until herd immunity is achieved – Akufo-Addo
Akufo-Addo’s approach to galamsey fight akin to mob justice – NDC
Maritime insecurity remains a big threat-CDS
NPP Women’s Organizer seeks justice for burnt mining equipment
Kajeji SHS in dire need of infrastructure 30 years after its establishment
IES MarketScan: A year on, why hasn’t ENI and Springfield unitized as directed
Withdraw illegal guards or lose your license – Forestry Services Division cautions Licensed Timber contractors
Senior Staff Association at Universities of Ghana resume strike after no-show Tier II
Registration of SIM cards with Ghanacard likely to begin soon – Bawumia
Anthony Joshua v Tyson Fury: Deontay Wilder arbitration casts doubt over Saudi Arabia bout
DCOP Opare Addo vows to take action against Delta Force following his attempted forceful removal from office
Ayew gives Swansea narrow lead over Barnsley in Championship play-offs
Mark Okraku-Mantey and arbitrators resolve MUSIGA election impasse
Francis-Xavier Sosu: Dishonesty of government in its economic management exposed by IMF