Several people were wounded minutes later when a remote-detonated car bomb went off as a Turkish aid convoy drove by near the airport, in some of the worst violence to hit Mogadishu in months.
“So far at least five people, among them civilians, were confirmed dead” in the courthouse attack, Ahmed Abdulkadir, a police officer there, told AFP, adding: “The death toll could be higher since the situation is not under control yet.”
There was no claim for the attack but the security services in Mogadishu said it was carried out by the Shebab, an Al Qaeda-linked group that controlled most of the city until it abandoned fixed positions in August 2011.
“Shebab suicide bombers have attacked the court and regional headquarters area. At least one of them detonated himself, leaving several dead,” said Abdirahman Mohamed, an intelligence officer in Mogadishu.
A car also exploded opposite the court complex as chaos engulfed the neighbourhood, with survivors and witnesses saying at least three of the attackers blew themselves up.
“There are still several of them fighting the security forces inside the building,” Mohamed said.
Moments later, civilians reached by AFP on their mobile phones said they were trapped inside the copmplex as the situation developed into a standoff.
“We are trapped inside the offices and we cannot go outside,” Fadumo Ali, a witness inside the office of the regional administration next door to the courthouse, said.
“Some of the terrorists are still inside the court building and they are wearing explosive vests. The building has been surrounded by the Somali troops and AMISOM peacekeepers.”
A semblance of normalcy had returned to the war-battered seaside capital since mid-2011, when the Shebab pulled out and started losing most of their strongholds across the country.
A regional military offensive has forced many Shebab forces to retreat to the mountains in northern Somalia but the insurgents have reverted to guerriklla tactics and carried out several bomb attacks in Mogadishu.