NEW YORK — A naturalized U.S. citizen who was a member of the Lebanese Hezbollah militia was sentenced to 40 years in federal prison Tuesday for gathering intelligence on potential sites for terrorist attacks in New York City.

Ali Kourani, a 35-year-old native of Lebanon, was the first member of the Islamic Jihad Organization, an arm of Hezbollah, to be convicted and sentenced in the United States, prosecutors said at the hearing in U.S. District Court in Manhattan.

Kourani was already under investigation when he sought out the FBI in 2017 and offered to work as an informant in support of the bureau’s counterterrorism efforts, but prosecutors said he misled investigators.

A jury convicted Kourani on several terrorism counts in May after an eight-day trial. The court was told he was part of the IJO’s efforts to scout possible vulnerabilities at various sites, including John F. Kennedy International Airport, a military armory in Harlem and the federal building in Lower Manhattan, which houses a day-care center in addition to 7,000 federal employees and 30 agencies.

Kourani also tried to procure weapons and went to China to find chemicals that could be used to make explosives, prosecutors said.

Assistant U.S. Attorney Emil Bove argued for what amounts to a life sentence — saying the first sentencing of a Hezbollah member in U.S. courts should make a statement.

“Your voice will be heard today in Lebanon by the leaders of Hezbollah,” he told Judge Alvin Hellerstein. “Your voice will be heard in Iran, [which] is directing IJO operatives.”

At Kourani’s nearly three-hour sentencing, Hellerstein rejected a defense argument that Kourani had committed no acts of violence and no information he gathered was used in a terrorist attack.

“It’s hard to think of a more serious offense than to engage in terrorism against the United States,” Hellerstein said.

The IJO has been linked to international acts of terrorism, including the 2012 suicide bombing attack on a bus carrying Israeli tourists in Bulgaria that killed six and injured 32.