Another 13 people were injured in the blasts set off near the ministerial compound which the assailants managed to breach before being fought back by security forces Efe news reported.
The African Union Mission in Somalia condemned the attack. "The terrorists prove once again their disregard for the stability and progress of Somalia " it said on Twitter.
The Somali media said soldiers journalists and civil servants were among the dead.
--IANS soni/