Turkey says Kurdish armed groups in Syria ‘legitimate targets’