A suicide bomber and several gunmen dressed in military uniforms attacked a hotel near Somalia's presidential palace on Tuesday. During the one-hour gun battle with security forces more than 30 people were killed.
The assault on the Muna hotel took place less than 24 hours after Somalia's most dangerous militant group - al-Qaida al-Shabab - threatened a "massive" war against what it called invaders.
The Somali Deputy Prime Minister says the victims include MPs, civil servants and civilians.
Abdirahman Haji Aden Ibi, Deputy Prime Minister, Somalia, said, "The death toll of the explosion at the hotel is 32: six MPs, five civil servants and 21 civilians. Two militias from Al-Shabab broke into their hotel and killed all of them. Later the two men blew themselves up. As you can see, their limbs are everywhere."
UN Special Representative for Somalia Augustine Mahiga strongly condemned Tuesday's suicide attack.
Islamic insurgents led by al-Shabab have been trying to topple the government in Mogadishu since January 2007.
Mogadishu has a small, government-controlled zone near the seaside airport. However, al-Shabab operatives frequently infiltrate the area and Tuesday's attack was their latest violent act inside the zone.
The attack raises the two-day toll of violence in Mogadishu to at least 70 people.