ISTANBUL (Reuters) - Turkish forces bombarded Kurdish YPG militia positions on the eastern shore of the Euphrates River in northern Syria, state-owned Anadolu news agency said on Sunday.

The move comes two days after Turkish President Tayyip Erdogan issued what he said was a “final warning” to those who would endanger Turkey’s borders, saying Ankara was determined to focus its attention on Syrian Kurdish fighters east of the Euphrates.

The bombardment targeted the Zor Magar area to the west of northern Syria’s Ayn al-Arab region and was aimed at preventing “terrorist activities”, Anadolu reported.

Turkey considers the YPG militia a terrorist organization and an extension of the outlawed Kurdistan Workers’ Party (PKK), which has led an insurgency in Turkey for more than three decades.

The YPG took control of large areas of northeast Syria in 2012 as government forces pulled out to fight rebels in the west.

Turkey carried out an offensive against YPG forces in northern Syria’s Afrin region earlier this year. Two years ago, Ankara intervened further east in northern Syria to sweep out Islamic State fighters and check the advance of the YPG.

Separately, Turkey’s military said eight PKK militants had been killed in air strikes on northern Iraq’s Hakurk and Avasin-Basyan regions on Sunday.

Turkey has in recent months conducted regular strikes on PKK bases in northern Iraq, including the insurgents’ stronghold in the Qandil mountains.

The PKK is deemed a terrorist organization by Turkey, the United States and Europe.