Turkey has threatened to launch a military operation in northern Iraq to attack PKK rebels who take refuge there .