Two blasts hit Mogadishu's airport on Thursday, killing at least eight people including African Union peacekeepers, residents said.
They said a suicide bomber rammed a car into an AU peacekeepers post outside the airport and that they heard a second explosion inside the compound shortly afterwards.
Witnesses reported a gunbattle following the blasts.
"The car powerfully rammed an AMISOM troops post at the airport's gate," Mohammed Abdi, a local shopkeeper, told Reuters, saying plumes of black smoke rose into the air.
Police confirmed the attack.
Somalia's interim government warned on Wednesday that it expected a surge in anti-government attacks as the Muslim holy month of Ramadan draws to a close.
"I have seen four bleeding AU soldiers being carried at the gate," Abdi said. "At least eight dead bodies, most of them AMISOM soldiers, were lying on the ground."