Israel Wednesday caved in to demands from Turkey and apologized over an insult to its ambassador, a government statement said, an attempt to defuse the latest crisis between the two nations. On Monday, Israel's Deputy Foreign Minister Danny Ayalon summoned the Turkish ambassador to complain about a TV show. The ambassador was forced to sit on a low sofa without a handshake, while Ayalon explained to local TV stations that the humiliation was intentional. Outraged, Turkey threatened to recall the ambassador. Late Wednesday, Israeli Prime Minister Benjamin Netanyahu's office said a letter of apology has been written, and the premier “hopes this will end the affair.” Israeli officials said the letter was delivered to Turkish officials in Ankara. Turkish Prime Minister Recep Tayyip Erdogan accepted the apology. “We have received the answer that we had been waiting for,” he said. But after receiving the letter of apology on Wednesday, Turkish Prime Minister Tayyip Erdogan threw a new barb at Israel, saying it should do more for peace in the region. The text of letter to the ambassador was released later Wednesday by Ayalon's office. It said in part, “although we have our differences of opinion on several issues, they should be discussed and solved only through open, reciprocal and respectful diplomatic channels between our two governments. ... I had no intention to humiliate you personally and apologize for the way the demarche was handled and perceived.” The crisis erupted Monday, when Ayalon summoned the Turkish ambassador, Ahmet Oguz Celikkol, to complain about a Turkish television drama that has been perceived as anti-Semitic. The show, “The Valley of the Wolves,” depicts Israeli security forces kidnapping children and shooting old men. Ayalon's detailed explanation of his insult to Israeli TV crews in the room was made in Hebrew, and the ambassador did not react. Asked Wednesday what would have happened if Ayalon had made the comments in English instead of Hebrew, Celikkol said, “The meeting would have ended there, and I would just have left.” He was interviewed in Tel Aviv by Turkey's state-run Anatolia news agency. Earlier Wednesday, Ayalon issued a statement admitting that his behavior was undiplomatic, but falling short of an apology. Turkey rejected that and threatened to withdraw its ambassador if a formal apology was not forthcoming. Over the past decade, the two states had built up a strong relationship, including military cooperation and tourism, making TurkeyIsrael's closest ally in the Muslim world. Lately, however, Israel has been troubled by harsh statements from Erdogan, who was outraged by the high Palestinian civilian death toll during Israel's Gaza offensive a year ago.