At least six people died when a suicide car bomb struck a local government office in central Mogadishu, destroying the building and a Quranic school opposite.
Islamist militant group Al Shabaab said it was behind the attack on Hawlwadag district office, which also blew off the roof of a mosque and damaged houses nearby.
At least six people were killed, including soldiers, civilians and the suicide bomber and a dozen injured, according to police officer Mohamed Hussein.
The school was open but at the time of the blast most children were away from the building on a break.
Earlier the director of the Amin ambulance service told Reuters at least 14 people were injured, including six children.
A Reuters journalist on the scene saw a human hand and blood stains in the rubble as people searched for survivors.
Abdiasis Abu Musab, Al Shabaab military operations spokesman, said the group carried out the attack.
“We are behind the suicide attack. We targeted the district office in which there was a meeting. We killed 10 people so far, we shall give details later.”
Somalia has been wracked by lawlessness and violence since 1991. Islamist group al Shabaab is fighting to dislodge a Western-backed government protected by African Union-mandated peacekeepers.