An America-hating terrorist from Canada cried “Allahu akbar!” and stabbed a cop in the neck at a Michigan airport Wednesday — and later told the FBI he was avenging the deaths of Muslims in the Mideast, authorities said.

The feds identified the attacker as Amor Ftouhi, 50, who entered the US from Quebec on June 16.

FBI special agent David Gelios said during a press briefing that authorities believe Ftouhi acted alone, and that he told them during interrogation that he “had a hatred for the US” for killing people in the war-torn countries and that “you are all going to die.”

Lt. Jeff Neville was standing at his post at the top of an escalator at the Bishop International Airport in Flint at about 9:45 a.m. when he was attacked from behind with what Gelios said was a 12-inch knife with an 8-inch serrated blade.

Neville, a member of the airport police force and a retired Genesee County sheriff’s deputy, underwent surgery and was resting comfortably in a local hospital in stable condition, police said.

The assailant had entered a public portion of the airport where visitors were not screened, ducked into a restaurant on the second level and then into a restroom before suddenly attacking the unsuspecting cop, police said.

Neville fought his attacker off until other officers could subdue him, police said.

“The cop was on his hands and knees bleeding from his neck,” Ken Brown, who was dropping his daughter off at the airport, told Michigan Live.

The FBI confirmed that the suspect shouted, “Allahu akbar” — “God is Great” in Arabic — more than once.

“We believe this to be an isolated incident,” the FBI added. “We currently have no specific, credible information that there is a threat to the Flint community.”

Flint lawyer Frank Manley told Michigan Live that Neville is a “very professional, outstanding police officer.”

“Gets along with everybody. His family’s been around Genesee County for a long time,” Manley said about Neville, who once ran for a seat on the county Board of Commissioners and likes competitive eating contests, according to the Flint Journal.

His father was longtime Flint bail bondsman Don Neville, according to Genesee County Commissioner Mark Young, a Democrat who called Jeff Neville, a Republican, his best friend, Michigan Live reported.

Ftouhi was charged with committing a violent act at an international airport, and could face up to 20 years in a federal prison if convicted. Additional charges are likely.

With Post wires