There was no immediate confirmation of a death toll.
The extremist group Al-Shabab in a statement carried by its Andalus radio said it targeted Western officials being escorted by the African Union peacekeeping convoy.
The al-Qaida-linked group frequently targets the capital with attacks.