A New York City man has been arrested on terrorism charges accusing him of expressing support for a potential truck attack in Times Square like the one by the Islamic State group in France.

A criminal complaint filed Monday in federal court in Brooklyn says Mohamed Rafik Naji traveled last year to Turkey and Yemen in an attempt to fight for the group.

It says that in an intercepted conversation earlier this year he told an unnamed associate the group wants to conduct an "operation" in Times Square. It says he referenced how a cargo truck plowed through a crowd celebrating Bastille Day in Nice (nees), France, killing dozens of people.

Naji was to appear in court later Monday. His lawyer's name is unavailable so he can't be contacted for comment.