Turkey has closed its airspace to some Israeli military aircraft, Turkish officials said Monday.

Prime Minister Recep Tayyip Erdogan told reporters in Toronto that Turkey imposed the ban in response to Israel's raid on a flotilla attempting to break the Gaza blockade in May.

Nine people died in that raid, most of them Turks. Turkey also withdrew its ambassador in the days following the raid.

"Up to now, we have done whatever is necessary within the rules of law - whether national or international - and we will continue to do so," the state-run Anatolia news agency quoted Erdogan as saying, adding that ties with Israel could return to normal if the Jewish state meets Turkey's demands.

"We are not interested in making a show," he said, according to Anatolia. "We don't desire such a thing and we have been very patient in the face of these developments."

According to Turkish officials, civilian commercial flights were not affected.