At least 10 people have been killed in a car bomb attack in the Somali capital Mogadishu that targeted a government building and was claimed by Islamist insurgents, a government official said.

"More than 10 persons died, 20 others were wounded. The explosion destroyed the building of Wadajir District headquarters. More than 10 cars were destroyed in the explosion," Abdifatah Omar Halane, spokesman for the Mogadishu mayor, said.