DETROIT — A Detroit-area man accused of trying to travel to the Middle East to fight in Syria’s civil war will remain in custody while his case moves through court.

The government said 22-year-old Mohammad Hamdan wanted to join Hezbollah, classified by the US as a terrorist organization. He was charged with violating a law that prohibits support for terrorist groups.

Magistrate Judge R. Steven Whalen said Monday that Hamdan won’t be released on bond. Whalen pored over transcripts of secretly recorded conversations and said Hamdan was a “confused young man.” He feared Hamdan may try to flee. Whalen said there was no evidence that Hamdan wanted to harm America.

Defense attorney Art Weiss said he would fight the charge.

Copyright 2014 The Associated Press.