Reports say the suicide bomber disguised in a military uniform to avoid being detected before blowing himself.
A government official was also killed in a second explosion in Mogadishu from a bomb planted in his car.
The Al-Shabab militant group has said it was behind the blasts.