An Illinois National Guard member has been arrested for allegedly planning an attack on an northern Illinois military base.

According a statement from the Justice Department, 22-year-old Army National Guard Spc. Hasan Edmonds was arrested at Midway Airport Wednesday night while he was attempting to fly to Cairo to join ISIS.

Members of the FBI's Joint Terrorism Task Force also arrested Edmonds' cousin, 29-year-old Jonas Edmonds.  Both men lived in Aurora and are U.S. citizens.

The cousins allegedly told an FBI undercover employee their plan for an armed attack on the U.S. military facility in northern Illinois where Hasan Edmonds had been training.

Jonas Edmonds allegedly told the FBI undercover employee that they would use uniforms and information from Hasan Edmonds to access the facility and target officers.

Illinois Governor Bruce Rauner has released a statement on the arrests:

“Yesterday, Adjunct General Daniel M. Krumrei and Illinois Public Safety Director Rodger Heaton briefed me regarding the ongoing investigation into an Illinois National Guard soldier, his potential involvement in terrorist activities and the soldier’s impending arrest.

Last night, I was informed that the Illinois National Guard soldier was arrested for alleged terrorist activities including attempting to join and assist ISIS and conspiring to facilitate other terrorist actions. I commend the Illinois National Guard and the Federal Bureau of Investigation for working together closely to apprehend this individual and his associates. On behalf of all citizens of Illinois, I thank all the members of our National Guard as well as the FBI for protecting our state and defending our country."

It's not known at this time which military base was being targeted.