(CNN) A New York man who planned to join the Taliban in Afghanistan and kill American forces was arrested at the JFK Airport on Friday, federal officials said.

Delowar Mohammed Hossain, 33, of the Bronx, is charged with attempting to provide material support for acts of terrorism, the US Attorney's Office for the Southern District of New York said in a statement.

A criminal complaint alleges that in recorded conversations with a confidential informant, he said he wanted to join the terror group and fight American forces, said Michael McGarrity, the FBI assistant director of counterterrorism.

He expressed his desire to join the Taliban in September last year, and attempted to recruit a confidential FBI source to travel with him to Pakistan then cross the border to Afghanistan, according to the criminal complaint.

"Delowar Hossain had a despicable goal. He wanted to make his way to Afghanistan, join up with Taliban forces, and kill Americans. But he failed because members of the FBI's joint terrorism task force interrupted his plans," McGarrity said.

Read More