Federal agents have arrested a New York City man on charges he tried to support and join the Islamic State group.

Court documents unsealed Thursday in Brooklyn detail multiple failed attempts by 22-year-old Ali Saleh to fly abroad between September 2014 and August 2015.

An FBI special agent says in a complaint that Saleh used Twitter to post a message saying he was ready to die for the so-called Islamic caliphate.

An attorney for Saleh hasn't returned a message seeking comment. He is expected to appear in court later Thursday.

Court papers show Saleh's first attempt to travel to Syria from New York via Turkey was thwarted after his parents took away his passport. They show he also tried to travel from New Jersey and Philadelphia airports.