A military colonel, asking not to be named, told Reuters: "The suicide bomber blew himself up minutes after the training. At least nine soldiers died and a dozen others were injured. "Some of the injured ones are in serious condition. It is not easy to prevent a militant in military uniform who wants to kill himself." In another part of the city, a car bomb killed a civil servant, said a spokesman for Mogadishu's mayor, Abdifatah Omar Halane.
On Sunday, an al Shabaab car bomb outside a Mogadishu army base killed at least 15 people. The group has stepped up its attacks to challenge the new government after President Mohamed Abdullahi Mohamed gave a speech in military uniform declaring "war" on the insurgency.
Somalia has been riven by civil war since 1991, when clan warlords overthrew authoritarian leader Siad Barre and then turned on each other. In many parts of the country, the conflict has exacerbated the effects of a severe regional drought. The UN says more than half the population of 12 million will need aid by July.