At least 20 militants were killed after Turkey's military carried out airstrikes against the outlawed Kurdistan Workers Party (PKK) in northern Iraq.

The airstrikes were carried out against PKK targets in northern Iraq's Hakurk region by F-16 fighter jets late on Tuesday, AFP quoted, citing Anadolu news agency, security sources as saying.

Turkey carries out air attacks against PKK targets in the mountainous regions of northern Iraq near the Turkish border frequently. The PKK leadership has camps near the border due to which the country constantly faces security threats.

A ceasefire between the PKK, which has been seeking autonomy, and the state fell apart last year, thereby triggering some of the worst violence in the three decades of the Kurdish insurgency.

Last Friday's failed military coup bid in Turkey led to the arrest of former Turkish Air Force Chief General Akin Ozturk, 25 other ex-generals and several soldiers. Rebel troops tried to overthrow the government led by Turkish President Recep Tayyip Erdogan.

Wednesday's fight between Turkish sources and the PKK took place after two and a half years of successful truce, AFP reported. The ceasefire had hoped to end the three decade long conflict between both the sides, but PKK has again begun carrying out routine attacks against Turkish forces.