Mogadishu:
Somalia's Al-Qaeda linked Shebab insurgents shot and blasted their way into the United Nations compound in Mogadishu on Wednesday, leaving eight people dead in the most serious attack on the UN in the troubled country in recent years.
At least three foreigners in the UN compound died in the attack, along with at least two Somali security guards and three civilians in the surrounding streets, officials said.
Somali Prime Minister Abdi Farah Shirdon condemned the brazen daylight raid as a "senseless and despicable attack on innocent UN civilians", while UN Secretary-General Ban Ki-moon said he was "shocked".
Shebab fighters, who boasted about the killings, used both a car bomb and suicide attackers to blast their way into the fortified base in central Mogadishu near the airport.
Police said at least seven Shebab took part in attack, all of whom are reported to have to either detonated suicide vests or been shot dead.
Security warnings of an attack have been in place for weeks, and UN staff regularly practise sheltering in a secure bunker inside the compound.
"Our commandos attacked the UN compound... we set off an explosion and entered the compound," a senior Shebab official told AFP, saying they entered to attack "the infidel forces."
Somali and African Union troops later moved into the complex -- despite the Islamists battling back with heavy gunfire -- to end the hour and an half seige.
"The situation is under control... Somali soldiers along with African Union forces stormed the compound and killed the attackers," said Somali police official Abdulahi Osman.
He said three civilians were confirmed killed, caught in the crossfire in the streets near the compound.
UN sources said one staff member and two contractors were killed along with at least two Somali security guards, although the nationalities of the foreigners could not be immediately confirmed.
An AFP reporter saw several bloodied bodies carried away on makeshift stretchers.
"Some of the 'white kuffar'(unbelievers) who tried to engage the mujahedeen in combat inside the offices were killed and thrown out into the compound," the Shebab wrote on Twitter.
The UN Assistance Mission in Somalia (UNSOM) said the compound -- home to UN humanitarian agencies -- had come under " complex attack".
UN sources said a car bomb had been detonated shortly before midday (0900 GMT), followed shortly by another blast, believed to have been a suicide bomber.
An AFP reporter near the scene of the attack reported heavy gunfire after a series of inital explosions, as the fighters battled with security forces.
The compound -- including both residential and office areas -- is a short distance from the airport zone, the base of the African Union troops, but is guarded by its own security officers.
"The fighting is over, there are many government soldiers all over the area," said witness Ahmed Sudi.
Somalia's capital has been hit by a series of attacks including suicide and car bombers, mortar attacks and shootings, although in recent weeks the city has been relatively calm.
Islamist Shebab militants used to control most of the seaside capital until they abandoned fixed positions in August 2011, but the insurgents have since carried out a string of attacks against the UN-backed government.
The last major attack was in April, when the Shebab sent a nine-man suicide commando unit to blast its way into Mogadishu's main court complex.
Some of the commandoes blew up their explosives vests while others sprayed gunfire in a rampage that killed 34 people.
Reports suggest that the attack on the UN compound used similar tactics to the courthouse assault.
The 17,000-strong AU force, fighting alongside Somali government troops, has forced the Shebab from a series of key towns.
While riven by infighting and hunted by US drones, Shebab extremists remain a potent threat, launching car bombs and assassinations, and are still powerful in rural areas as well as reportedly infiltrating the security forces.
Shirdon condemned the attack.
"The UN are our friends and partners, and the UN agencies offer us humanitarian help and support, so I and all Somalis are appalled that they should be the target and victims of such barbaric violence," he said in a statement.
In 2008 a car bomb attack on the compound of the UN Development Programme in the self-declared independent state of Somaliland left two UN staff dead.
At least three foreigners in the UN compound died in the attack, along with at least two Somali security guards and three civilians in the surrounding streets, officials said.
Somali Prime Minister Abdi Farah Shirdon condemned the brazen daylight raid as a "senseless and despicable attack on innocent UN civilians", while UN Secretary-General Ban Ki-moon said he was "shocked".
Shebab fighters, who boasted about the killings, used both a car bomb and suicide attackers to blast their way into the fortified base in central Mogadishu near the airport.
Police said at least seven Shebab took part in attack, all of whom are reported to have to either detonated suicide vests or been shot dead.
Security warnings of an attack have been in place for weeks, and UN staff regularly practise sheltering in a secure bunker inside the compound.
"Our commandos attacked the UN compound... we set off an explosion and entered the compound," a senior Shebab official told AFP, saying they entered to attack "the infidel forces."
Somali and African Union troops later moved into the complex -- despite the Islamists battling back with heavy gunfire -- to end the hour and an half seige.
"The situation is under control... Somali soldiers along with African Union forces stormed the compound and killed the attackers," said Somali police official Abdulahi Osman.
He said three civilians were confirmed killed, caught in the crossfire in the streets near the compound.
UN sources said one staff member and two contractors were killed along with at least two Somali security guards, although the nationalities of the foreigners could not be immediately confirmed.
An AFP reporter saw several bloodied bodies carried away on makeshift stretchers.
"Some of the 'white kuffar'(unbelievers) who tried to engage the mujahedeen in combat inside the offices were killed and thrown out into the compound," the Shebab wrote on Twitter.
The UN Assistance Mission in Somalia (UNSOM) said the compound -- home to UN humanitarian agencies -- had come under " complex attack".
UN sources said a car bomb had been detonated shortly before midday (0900 GMT), followed shortly by another blast, believed to have been a suicide bomber.
An AFP reporter near the scene of the attack reported heavy gunfire after a series of inital explosions, as the fighters battled with security forces.
The compound -- including both residential and office areas -- is a short distance from the airport zone, the base of the African Union troops, but is guarded by its own security officers.
"The fighting is over, there are many government soldiers all over the area," said witness Ahmed Sudi.
Somalia's capital has been hit by a series of attacks including suicide and car bombers, mortar attacks and shootings, although in recent weeks the city has been relatively calm.
Islamist Shebab militants used to control most of the seaside capital until they abandoned fixed positions in August 2011, but the insurgents have since carried out a string of attacks against the UN-backed government.
The last major attack was in April, when the Shebab sent a nine-man suicide commando unit to blast its way into Mogadishu's main court complex.
Some of the commandoes blew up their explosives vests while others sprayed gunfire in a rampage that killed 34 people.
Reports suggest that the attack on the UN compound used similar tactics to the courthouse assault.
The 17,000-strong AU force, fighting alongside Somali government troops, has forced the Shebab from a series of key towns.
While riven by infighting and hunted by US drones, Shebab extremists remain a potent threat, launching car bombs and assassinations, and are still powerful in rural areas as well as reportedly infiltrating the security forces.
Shirdon condemned the attack.
"The UN are our friends and partners, and the UN agencies offer us humanitarian help and support, so I and all Somalis are appalled that they should be the target and victims of such barbaric violence," he said in a statement.
In 2008 a car bomb attack on the compound of the UN Development Programme in the self-declared independent state of Somaliland left two UN staff dead.
Track Latest News Live on NDTV.com and get news updates from India and around the world