Baghdad: Iraqi Shiite militiamen opened fire on minority Sunnis in a mosque on Friday, killing more than 70 people just as Baghdad is trying to build a cross-community government to fight Islamists whose rise has alarmed Western powers.

A police officer said that local militants broke into the mosque and opened fire in Imam Wais village in Baquba, capital of Diyala province, some 120km northeast of Baghdad. Several dozens were wounded in the attack.

The bloodbath marks a setback for Prime Minister-designate Haider Al Abadi, from the majority Shiite community, who is seeking support from Sunnis and ethnic Kurds to take on the Islamic State of Iraq and the Levant (Isil) insurgency that is threatening to tear Iraq apart.

In the northern city of Mosul, Isil stoned a man to death, witnesses said, as the United States raised the prospect of tackling militant safe havens across the border in Syria.

In a regional conflict which is throwing up dilemmas for governments from Washington to London to Baghdad and Tehran, any US action against Isil in Syria would risk making common cause with President Bashar Al Assad - the man it has wanted overthrown in a three-year uprising.

Isil, which last week released a video showing the beheading of American journalist James Foley, stoned the man to death in Mosul after one of its self-appointed courts sentenced him for adultery, the witnesses said.

The stoning, which happened on Thursday, was the first known instance of the punishment by militants in Iraq since it seized large areas of the country in a June offensive.

Having poured in from Syria across a desert border that it does not recognised, the movement has declared its own caliphate.

Similar stonings by the radical Sunni group have been previously reported in Syria, where it split from Al Qaida.

Isil is the most powerful rebel group fighting Al Assad’s forces in a civil war which the United Nations said has claimed almost 200,000 lives at the very least.

Iraqi government forces - which at first put up little serious resistance - are starting to fight back.

Along with fighters from the Iraq’s Kurdish autonomous region, they tried on Friday to recapture two towns near the Iranian border, security sources said, backed by US airpower and Iraqi fighter planes.

NON-EXISTENT BORDER

President Barack Obama’s decision to authorise air strikes in Iraq for the first time since US troops pulled out in 2011 has helped to slow the militants’ offensive. However, America’s top soldier acknowledged that the internationally recognised frontier between Iraq and Syria, over which the militants have free passage, no longer meant much in the wider conflict.

General Martin Dempsey, chairman of the Joint Chiefs of Staff, suggested Isil would remain a danger until it could no longer count on safe havens in Syria.

“This is an organisation that has an apocalyptic, end-of- days strategic vision and which will eventually have to be defeated,” he told reporters in Washington on Thursday.

“To your question, can they be defeated without addressing that part of their organisation which resides in Syria? The answer is no. That will have to be addressed on both sides of what is essentially at this point a non-existent border.” Obama came close to ordering air strikes on Syria last year,

but they would have been against Al Assad’s forces which are fighting Islamic State in the complex civil war involving a range of factions battling each other.

At least 191,369 people have been killed in the Syrian conflict up to April, more than double the figure documented a year ago and probably still an under-estimate, the United Nations human rights office said on Friday.

Obama had intended to punish Assad for using chemical weapons in the three-year civil war - charges Damascus denied - but the air strikes were cancelled after a Russian-brokered deal under which Syria surrendered its chemical arsenal.

Sources familiar with Syrian government thinking say Al Assad is wagering that Isil’s push to reshape the Middle East will eventually force a hostile West to deal with him as the only way to tackle the threat.

Western governments which back the uprising against Al Assad have dismissed the idea of rapprochement. But if the United States were to attack Isil in Syria, it would find itself - however reluctantly - fighting a common enemy with Assad.

HARD DECISIONS FOR BAGHDAD

Iraq also faces some hard decisions. The government has promised to release from prison a former defence minister of ousted president Saddam Hussain, a senior Sunni official said.

In an interview with the London-based Asharq Al Awsat newspaper, Deputy Prime Minister Saleh Mutlaq did not say why the promises to free Sultan Hashem and other Sunni military and political leaders had been made.

Hashem’s release could appease the Sunnis who dominated Iraq until a US-led invasion overthrew Saddam in 2003.

But it would mark a major concession by the government led by Shiites and probably upset the Kurdish community. Hashem was sentenced to death for a campaign under Saddam that included gassing Kurds in the town of Halabja in 1988.

The conflict may also mean other old enemies working together, albeit with hard bargains being struck. This includes regional Shiite power Iran, which has long been at odds with the United States over its nuclear programme.

Foreign Minister Javad Zarif was quoted on Thursday by the state news agency Irna as saying Tehran was ready to help tackle Isil in Iraq, but first wanted progress in negotiations with world powers over the nuclear programme.

However, perhaps reflecting the sensitivity of the issue, Irna later reported foreign ministry spokeswoman Marzieh Afkham as dismissing “reports by some news agencies about Iran and US cooperation in Iraq”.

France, one of the six nations in nuclear talks with Tehran, said this week it wanted Arab states, Iran and the five permanent members of the U.N. Security Council to coordinate a comprehensive response against Isil.

The West fears the programme aims to develop a nuclear weapons capability, while Iran insists it is peaceful.