WASHINGTON — The House Foreign Affairs Committee voted narrowly on Thursday to condemn as genocide the mass killings of Armenians early in the last century, defying a last-minute plea from the Obama administration to forgo a vote that seemed sure to offend Turkey and jeopardize delicate efforts at Turkish-Armenian reconciliation.

The vote on the nonbinding resolution, a perennial point of friction addressing a dark, century-old chapter of Turkish history, was 23 to 22. A similar resolution passed by a slightly wider margin in 2007, but the Bush administration, fearful of losing Turkish cooperation over Iraq, lobbied forcefully to keep it from reaching the House floor. Whether this resolution will reach a floor vote remains unclear.

In Ankara, the capital, the office of Prime Minister Recep Tayyip Erdogan immediately issued a sharp rebuke. “We condemn this bill that denounces the Turkish nation of a crime that it has not committed,” the statement said. Ambassador Namik Tan, who had only weeks ago taken up his post in Washington, has been recalled to Ankara for consultations, according to the statement.

Historians say that as many as 1.5 million Armenians died amid the chaos and unrest surrounding World War I and the disintegration of the Ottoman Empire. Turkey denies, however, that this was a planned genocide, and had mounted a vigorous lobbying campaign against the resolution.