A spokesman for the city adminstration, Abdifatah Omar Halane, said investigations were under way. The Shabaab group claimed responsibility in a statement distributed on its Telegram messaging account.
It said the target was a military base close to the port and claimed to have killed “nearly 30”. The group frequently exaggerates the number killed in its attacks.
The Shabaab is fighting to overthrow the internationally-backed government of Somalia and regularly stages deadly attacks on government, military and civilian targets in the capital and elsewhere in the war-torn country.