BAGHDAD -- A suicide car bombing in Iraq's eastern Diyala province killed at least 40 people gathered at a marketplace to mark the end of the holy month of Ramadan.

Iraqi police officials said at least 40 people were also wounded in the attack in the town of Khan Beni Saad. Hospital officials confirmed the death tolls. The officials spoke on condition of anonymity because they were not authorized to talk to the press.

The Islamic State group has claimed responsibility for the attacks, according to messages posted on Twitter. The claim could not be independently verified but it was posted by accounts commonly associated with the group.

Parts of Diyala were captured by the Islamic State group last year. Iraqi forces and Kurdish fighters have since retaken those areas, but clashes between the militants and security forces continue.

The Sunni militant group has been behind several similar large-scale attacks on civilians or military checkpoints as it seeks to expand its territory, which includes a third of Iraq and Syria.