Erdogan says Nagorno-Karabakh peace is foreign priority