A suicide bomber has blown himself up outside a Shia mosque in the Iraqi capital, Baghdad, leaving seven people dead and wounding at least 11 others.

The blast occurred near the Assad Allah mosque in the Hussainya suburb to the northeast of the capital.

"As the suicide bomber was on his way to approach the mosque to blow himself up, one of the guards grabbed him. He immediately exploded," said eyewitness Abu Zahra.

In western Baghdad on Tuesday night, a bombing near a Sunni mosque killed two worshippers.

Hospital officials confirmed the death tolls in the two attacks.

All officials spoke on condition of anonymity because they are not authorised to talk to the media.

Suicide attacks, car bombings and other violence have killed more than 3,000 people since April in Iraq, according to an Associated Press news agency count.

Source: Agencies