Azerbaijan was compelled to take necessary measures on its sovereign territory: Turkish Foreign Ministry