District police chief Mucawiye Ahmed Mudey told reporters that at least eight others had been injured.
In a short statement, the Islamist militant group Al-Shabab claimed responsibility for the attack.
The attack targeted a convoy heading towards the presidential palace as it waited at a busy checkpoint.
A witness told AFP that the bomb was detonated when police stopped the driver to carry out a security check.