Somalia's security ministry said Sunday that forces had killed two gunmen and captured three after a siege at a Mogadishu hotel following a twin car bombing that left at least 14 dead.
Spokesman Abdiasiz Ali Ibrahim said a number of people had been rescued from Shabaab gunmen at the Nasa Hablod Hotel 2.
The attack began when a car bomb exploded outside the hotel entrance, followed by a minibus loaded with explosives going off at a nearby intersection.
"Five gunmen stormed the building, two of them were killed and the rest captured alive. The security forces are still working on retrieving the casualties, we don't have exact number of the casualties so far," the spokesman told reporters.
Another security official Mohamed Moalim Adan had put the death toll at 14, "most of them civilians", as the operation was still ongoing Saturday night.
One senior police official and a former MP were among the dead.
The Al-Qaeda-affiliated Shabaab claimed the bombing and hotel assault in a statement on its Andalus radio station.
"The Mujahedeen fighters are inside Nasa Hablod 2 hotel where... apostate officials are staying," said the brief statement.
The hotel is popular among government officials, several of whom were rescued by the security forces.
Somalia's President Mohamed Abdullahi Mohamed condemned the attack which comes two weeks after a massive truck bomb killed at least 358 people in the capital, the worst attack in the troubled country's history.
"The violent terrorists carried out this attack to scare our people who are united to support security after the disaster on october 14. Such atrocities will neither deter nor discourage our will to fight the terrorists," the president said in a statement.