MOGADISHU: Shabab rebels launched a major attack on the National Parliament Saturday, setting off a car bomb and penetrating the building with suicide commandos, leaving as many as 10 dead, police and witnesses said.

A huge car bomb went off outside the gates of the Parliament in central Mogadishu shortly before midday, and a string of smaller blasts followed by intense gunfire were also heard coming from inside the complex.

Police said at least four attackers were killed, and AFP reporters at the scene also counted four dead security guards, adding that a number people had also been wounded. Officials said at least two MPs were injured and taken to hospital.

Exchanges of gunfire could still be heard coming from inside the building more than an hour after the attack started before dying down, although it was not yet clear if the attack was over.

“There is an attack near the Parliament building. There was a car bomb explosion and gunfire broke out,” police official Husein Ise told AFP.

Witnesses said Shabab militants, the Al-Qaeda-linked group fighting to overthrow Somalia’s internationally-backed but fragile government, stormed into the complex while MPs were meeting inside.

“I was shocked when I heard the blasts and a gunbattle. I had to run for my life,” a female Somali MP said after escaping the battle.

A spokesman for Shabab confirmed the group was responsible for the attack.

“The so-called Somali Parliament is a military zone. Our fighters are there to carry out a holy operation,” Shabab’s military spokesman, Abdulaziz Abu Musab, told AFP by telephone.

“We shall issue a comprehensive report after the conclusion of the operation,” he added.

Recent Shabab attacks have targeted key areas of government, or the security forces, in an apparent bid to discredit claims by the authorities that they are winning the war against the fighters.