NATO ally Turkey plans to oppose an American-sponsored draft resolution at the United Nations condemning Hamas, Palestinian Islamic Jihad and other Palestinian terror factions. A vote on the resolution is scheduled for Thursday.

The resolution specifically condemns “Hamas for repeatedly firing rockets into Israel and for inciting violence, thereby putting civilians at risk.”

It also demands that Palestinian terror factions stop using “airborne incendiary devices,” such as flame-laden kites and balloons, against Israel, causing arson fires that have burned nearly 10,000 acres of land.

Turkey will vote against the resolution, Iran’s Mehr News Agency reported on Tuesday.

Turkish Foreign Minister Mevlüt Çavuşoğlu promised Hamas leader Ismail Haniyeh that Turkey would do everything it could to stop its passage.

Haniyeh lobbied the Turks to help Hamas thwart the American effort. Hamas called the resolution “aggression against the rights of the Palestinian cause” in a communiqué posted on its website, claiming it was an assault on “the right of the Palestinian people to defend themselves.”

Çavuşoğlu vowed that his country would “remain alongside the right of Palestine and Palestinians, and that its position is constant on the Palestinian Cause.”

Turkey has become a key Hamas ally and protector.

Çavuşoğlu condemned the American decision in January to classify Haniyeh as a specially designated global terrorist. And Turkish President Recep Tayyip Erdoğan declared last May that Hamas was not a terrorist organization.

Turkey gives military assistance to Hamas through a private military company called SADAT International Defense Consulting run by a top Erdoğan military adviser, Israel’s Shin Bet disclosed earlier this year.

Hamas co-founder Mahmoud al-Zahar visited Turkey last week to meet with Hamas members living in Istanbul.

Al-Zahar toured the region seeking support for the Palestinian Legislative Council (PLC), the Palestinian Authority parliament. Hamas won a majority of its seats in 2006, but P.A. leader Mahmoud Abbas effectively shut down the PLC in 2007.

Despite an intense struggle for power, the P.A. and Abbas’s Fatah faction also have condemned the U.N. resolution critical of Hamas, saying it would hurt all Palestinian factions.

“Hamas is part of the Palestinian people, and we won’t accept any attempt to add it to the list of terror groups,” said Azzam al-Ahmed, a senior Fatah official.

The resolution is unlikely to pass due to the wide support the Palestinian cause enjoys among non-aligned nations in the Third World.