Iraq has reached a compromise with Kataeb Hezbollah, the Iran-backed paramilitary group, three senior security officials told Reuters.

The deal followed Prime Minister Ali al-Zaidi's preparations to move security forces against the group. Iraqi officials had accused Kataeb Hezbollah, which is based in Iraq, of running a smuggling ring that siphoned off hundreds of millions of dollars' worth of state-owned oil.

Senior Shia political leaders brokered the deal to avert what could have been a civil war. According to three security officials familiar with the arrangement, government forces were expected to move into Jurf al-Sakhar, a Kataeb Hezbollah stronghold, on Friday. Lieutenant General Saad Maan, head of Iraq's Security Media Cell, told Reuters that Kataeb forces would move to other areas.

Iraqi Shia political sources said Esmail Qaani, commander of Iran's Revolutionary Guards' Quds Force, arrived in Baghdad late on Monday to help defuse tensions. A spokesperson for Kataeb Hezbollah said the group's secretary-general, Abu Hussein al-Hamidawi, met Qaani, Hadi al-Amiri of the Badr Organization, and other figures to prevent an escalation. Participants described the talks as positive in a statement issued on Thursday.