Turkey has 'right' to fight terrorism 'in any way'