A suicide bomber detonated explosives inside a cafe in a predominantly-Shia neighbourhood in west Baghdad on Sunday evening, killing at least four people, security and medical officials said.
The evening attack struck inside the cafe in the Washash neighbourhood, a police officer and a medical source said, leaving at least 12 others wounded.
The blast was a rare bombing in recent days in the Iraqi capital, which has endured a tense calm as security forces and militants have focused their resources north and west of Baghdad, with a jihadist-led offensive having overrun swathes of five provinces.
Iraqi forces initially wilted when faced with the insurgent onslaught, which began late on June 9, but have since performed more capably, albeit with few gains in offensive operations.
The militant advance displaced hundreds of thousands of people, alarmed the international community and heaped pressure on incumbent Prime Minister Nuri al-Maliki as he seeks a third term in office following April elections.
The offensive was led by the Islamic State (IS) jihadist group, whose leader Abu Bakr al-Baghdadi purportedly appeared on a video distributed online on Saturday, delivering a sermon at a mosque in Mosul, the first city to fall in the militant onslaught.