Baghdad: A suicide bomber detonated an explosives-rigged vehicle at a popular Baghdad ice cream shop, killing at least eight people, security officials said on Tuesday.

The overnight attack in the Karrada district in central Baghdad also wounded at least 30 people, officials said.

The Daesh-linked Amaq propaganda agency said the suicide bomber targeted a “gathering of Shiites.”

Daesh considers members of Iraq’s Shiite Muslim majority to be heretics and frequently carries out attacks against them.

The start of Ramadan means Iraqis often stay out late shopping or socialising after breaking their fast.

Images and footage posted on social media showed the devastating impact of the blast, which ripped through the crowded area around Al Faqma ice cream shop, scattering rubble across the street.

One photo showed cups of ice cream scattered on the blood-stained ground following the attack.

Brett McGurk, the envoy to the US-led anti-Daesh coalition, condemned the attack and expressed solidarity with Iraq.

“[Daesh] terrorists tonight in Baghdad target children & families enjoying time together at an ice cream shop. We stand w/Iraq against this evil,” McGurk said on Twitter.

Daesh overran large areas north and west of Baghdad in 2014, but Iraqi forces backed by US-led air strikes have since regained much of the territory they lost and are now fighting to retake the last extremist-held areas in second city Mosul.

But defeats on the battlefield have not prevented Daesh from carrying out deadly attacks targeting civilians, including a bombing in the Karrada area last year that killed more than 300 people.