Updated

A Wisconsin man is accused of traveling to the Middle East in an attempt to join the Islamic State group.

Thirty-four-year-old Joshua Van Haften was arrested Wednesday night at O'Hare International Airport in Chicago. A criminal complaint charges him with attempting to provide material support to a foreign terrorist organization.

Van Haften is scheduled to appear Thursday morning in federal court in Madison.

The complaint alleges Van Haften, of Madison, had talked to people about his plan before leaving the United States. It says he left the United States in August for Istanbul.

The complaint cites Facebook posts from Van Haften that said he was unable to cross the border from Turkey into Syria. He had just returned on a flight from Turkey when he was arrested.