Two New Jersey men were arrested this week in connection with the investigation into a planned terror attack near Detroit over Halloween weekend , four law enforcement officials told NBC News.

A 19-year-old man was taken into custody on Tuesday at Newark Liberty International Airport, and another man was arrested on Wednesday. They were identified as Tomas Kaan Jimenez-Guzal and Milo Sederat, both of Montclair.

Two officials said the 19-year-old talked about wanting to train with the terror group ISIS and had planned to fly to Turkey to try to travel to Syria. The 19-year-old initially had plans to leave on Nov. 17, but allegedly moved up his timeline following a raid last week at Detroit homes and a storage unit connected to an alleged Halloween weekend terror plot, the sources said.

See Full Page