PINE BUSH, N.Y. — A school in upstate New York has apologized for reciting the Pledge of Allegiance in Arabic after complaints from district residents who lost family members in the Afghanistan war.

The pledge was read in Arabic during Wednesday morning announcements at Pine Bush High School, located 65 miles northwest of New York City.

Some students were angered and responded with catcalls. District Superintendent Joan Carbone told the Times Herald-Record of Middletown that she received complaints from residents who lost relatives in Afghanistan and from Jewish parents.

The Arabic reading of the pledge has “divided the school in half,” she told the newspaper.

The district said the school’s foreign language department arranged to have the pledge recited in different languages for National Foreign Language Week, which was last week.

Andrew Zink, the senior class president, usually gives the morning announcements and recites the pledge. He said he allowed an Arabic-speaking student to handle the pledge duties Wednesday.

“The intention was to promote the fact that those who speak a language other than English still pledge to salute this great country,” the district said in its statement.

The principal made a buildingwide announcement Wednesday afternoon to explain the reading’s context and apologize to students who took offense to it being recited in Arabic. In a statement posted on the district’s website, officials said they apologized “to any students, staff or community members who found this activity disrespectful.”

Carbone said the pledge will be read in English only from now on, as is directed in state Department of Education regulations.

The Pine Bush district spreads across rural parts of Orange, Sullivan and Ulster counties. Its total enrollment is about 5,500 students.

In 2013, the parents of several Jewish students attending Pine Bush elementary and middle schools said their children were the targets of anti-Semitic harassment from classmates. The families filed a federal civil rights lawsuit, claiming district officials turned a blind eye to the behavior. In November, a federal judge in White Plains ruled the case could go forward.