Unidentified gunmen have killed three Iranian police on patrol in the northwest of the country near the border with Iraq, Iranian media reported Wednesday.

Tuesday night’s attack cames after the authorities in Shiite-ruled Iran beefed up security along the frontier in response to a Sunni militant offensive that has captured swathes of Iraqi territory.

The police were killed near the village of Taze-Abad, about 50 kilometers (30 miles) from the border with Iraq, said Mehr news agency.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

A border outpost commander was among those killed, the semi-official Fars news agency quoted a local security official Shahriar Heidari as saying.

Heidari said an unspecified “terrorist group” was behind the attack, but did not elaborate and no other details were immediately available.

An official familiar with the attack denied the Islamic State of Iraq and the Levant carried out the attack, or that the jihadist group leading the offensive in Iraq had entered Iran, according to AFP.

The attack comes just days after the Iranian army clashed in the same region with suspected forces of the Party of Free Life of Kurdistan (PJAK).

The clash, which took place on Saturday, killed at least one member from the ranks of the PJAK, the main Kurdish armed movement opposed to Tehran based in northeastern Iraq, media reports said.

Iran supports the Iraqi government of Shiite Prime Minister Nuri al-Maliki in its fight with the Sunni militants who have seized control of vast stretches Iraqi territory since June 9, including second city Mosul.