Gunmen launch deadly attack on Somalia courthouse

At least 19 people killed in bomb and gun attacks in Somali capital, Mogadishu

At least 19 people have been killed in bomb and gun attacks in the Somali capital, Mogadishu.

Sixteen people, including nine attackers, are believed to have died after gunmen stormed the city's main court buildings.

Later a car bomb was detonated on the road to the airport, killing three, including two Turkish aid workers and the attacker.

The Islamist militant group al-Shabab says it carried out the attacks.

Al-Shabab, which has links with al-Qaeda, has been blamed for a series of attacks in Mogadishu in the last two years.

But reports say Sunday's violence is the worst seen in the city since al-Shabab was pushed out of the city by AU and Somali forces in August 2011.

The Islamist group still controls most villages and rural areas of Somalia.

BBC reporter Mohamed Ibrahim at the scene says armed intruders entered the court in the capital and began firing, after which there was an explosion.

A gunfight followed as security forces exchanged fire with the attackers.

Witnesses said at least one car bomb was used in the attack.

"Armed men entered the court and then we heard a blast. Then they started opening fire," witness Hussein Ali, who works at the courts, told Reuters news agency.

Ugandan troops - part of the African Union force stationed in Mogadishu - arrived at the scene shortly after the shooting started.

The Somali government said that nine gunmen had been involved in the assault, and all had now been killed.

Six of them detonated suicide vests, it said.

Somali President Hassan Sheikh Mohamud condemned the latest attacks as "nothing but a sign of desperation by the terrorists".

"Somalia is moving and will keep moving forward and will not be prevented [from achieving] a peaceful and stable Somalia by a few desperate terrorists," he said in a statement.