Reports from Somalia say at least 30 people have been killed and dozens injured in two explosions in the capital Mogadishu.

The blasts happened at a mosque in a rebel-dominated area as people gathered for midday prayers. A senior member of a movement linked to Al Qaeda is among those reported hurt.

Al-Shabab says it is fighting the weak UN-backed government trying to create an Islamic state in a country racked by violence for the past two decades.

It is not clear who was behind the attack, the second in a week on the mosque. Some residents said it could be the result of infighting between insurgent groups. The government has said it would not attack rebels where other people were gathered.