Somali troops on Saturday took full control of a hotel that extremist gunmen stormed and occupied for more than 12 hours following a suicide bombing. At least 17 people died and dozens were wounded.
The gunfire has stopped and security agents control the whole building, said senior police officer Capt. Mohamed Hussein. He had earlier said the gunmen were believed to have occupied the third and fourth floors of the Maka Al-Mukarramah hotel in the capital Mogadishu.
"The operation has ended. We have taken full control of the hotel," Hussein said.
Hussein said security forces found four more bodies in the hotel Saturday, plus nine dead on Friday. Four more people died in the hospital, according to Duniya Mohamed, a doctor at Madina hospital in Mogadishu. Hussein Ali, an official of Mogadishu's ambulance service, said 28 people were wounded.
There was no immediate indication of how many of the dead were attackers, all of whom were killed according to Hussein.
Somalia's ambassador to Switzerland and Permanent Representative to the United Nations Office in Geneva, Yusuf Bari-Bari was among those killed in the attack, said Somali President Hassan Sheikh Mohamud.
Al-Shebab, an al-Qaeda-linked Islamic extremist group that has carried out many attacks in Somalia, claimed responsibility for the assault on the hotel, which is popular with Somali government officials and foreigners.
Al-Shabab controlled much of Mogadishu between 2007 and 2011, but was pushed out of Somalia's capital and other major cities by African Union forces.
The attack started around 4 p.m. Friday when a suicide bomber detonated his explosives-laden car at the gate of the hotel. Gunmen then quickly moved in.
Hours later, the militants were still holed up in the hotel's dark corridors and rooms. Sporadic gunfire could be heard, but it appeared that the security forces waited until daybreak before trying again to dislodge the militants.
The terrorists are said to have then stormed into the first, second and third floors of the hotel where rooms are located and held several people hostage.
The attack was condemned by the African Union mission to Somalia in which troops from several African countries support Somalia's weak government.
"Our message to the perpetrators of this inhuman act is, that their action will not dampen our spirit for the common good of Somalia, but will further strengthen us to work even harder to defeat the enemy of peace and development, with the aim of rebuilding a stronger and stable Somalia," said Ambassador Maman S. Sidikou, the African Union's representative in Somalia.
Al-Shebab routinely carries out suicide bombings, drive-by shootings and other attacks in Mogadishu, the seat of Somalia's Western-backed government, often targeting government troops, lawmakers and foreigners.
Despite major setbacks in 2014, al-Shabab continues to wage a deadly insurgency against Somalia's government and remains a threat in the East African region.
The group has carried out attacks in neighboring countries, including Kenya, whose military is part of the African Union troops bolstering Somalia's weak government from al-Shebab insurgency.
At least 67 people were killed in a September 2013 attack by al-Shebab on a mall in the Kenyan capital of Nairobi.