According to the Goobjoog News portal, the attacker detonated an explosive device while standing in a queue of civilians seeking to be recruited to the army.
So far, no militant group has claimed responsibility for the explosion.
Earlier in May, at least six people, including two law enforcement officers, were killed when a suicide bomber targeted a police station in Mogadishu.