Police in the capital, Mogadishu, fired at the attacker as he broke through a checkpoint, allowing civilians to escape before the explosion.
A suicide bomber blew up a car near the presidential palace in Somalia's capital, Mogadishu, on Saturday, injuring at least seven people and destroying dozens of vehicles, police said.
The bomber broke through a checkpoint near the palace and detonated his explosives after police chased and fired at his vehicle, authorities told reporters.
"Security forces foiled a complex attack this morning, firing on the suicide car bomber before he reached his target, allowing many civilians to escape unharmed," a police officer told the German news agency DPA.
Confusion over death toll
The official police statement said that the only death in the scene was the bomber's, but witnesses reported at least two other deaths, according to the French news agency AFP.
Government buildings in Mogadishu have been a target for the al-Qaida affiliated group, Al-Shabab.
The extremists have reportedly claimed responsibility for the attack in a message on pro-insurgent radio station Andalus.
Saturday's blast took place as Somali politicians try to break an election deadlock, and are set to hold talks on the crisis on Monday. Al-Shabab reportedly threatened to attack the polls.
fb/mm (AFP, AP, dpa)