The 35-year-old had been stationed at Schofield Barracks and was indicted in July 2017. His arrest marked the first time a Hawaiian resident has been convicted of attempting to help the foreign terror group.

Wow. After a yearlong investigation, the FBI arrests a US soldier & accuses him of supporting the Islamic State https://t.co/8fCa26t1av

John C. Demers, Assistant Attorney General for National Security said the Army soldier “betrayed his country” in trying to assist the enemy combatants.

“Kang swore to defend the United States as a member of our military, but betrayed his country by swearing allegiance to ISIS and attempting to provide material support to the foreign terrorist organization.”

FBI says Ikaika Erik Kang, 34, an Army sergeant first class, swore allegiance to ISIS and offered to provide military documents & training

Court documents state that starting in early 2016, Kang became sympathetic to ISIS. Kang, who owned an AR-15-style assault rifle and a pistol, began making statements endorsing ISIS. Police began watching him as the FBI investigated.

Kang then met with undercover FBI agents who were posing as people connected to ISIS. The soldier gave them nonpublic Defense Department documents labeled “SECRET.” The papers included information on the military’s “weapons file,” the military’s sensitive mobile airspace management system, and personally identifiable information of U.S. service members.

According to the report, the Army soldier gave the undercover agents a drone he said could be used to spy on U.S. troops and other militaristic gear.

During another meeting with the undercover FBI agents, Kang reportedly showed them hand-to-hand combat techniques and gave them weapons training.

It is not clear why the FBI allowed the actions to perpetually get worse, but Kang soon approached a line they would not allow him to cross:

He later swore an oath of loyalty to ISIS and its leader, Abu Bakr al-Baghdadi, in a fake ceremony the FBI agents carried out. That day, he told the agents he wanted to take his rifle and open fire in downtown Honolulu and in Waikiki. He was then arrested.

As Washington Examiner reports, Kang’s plea deal includes a mandatory 25 years in prison and 20 years of supervised release.

According to the Department of Defense, Kang was highly decorated and received multiple commendations, including the Global War on Terrorism Service Medal, the Afghanistan Campaign Medal, the Iraq Campaign Medal and the Army Good Conduct Medal. His rank was Sergeant First Class and he was an air traffic control operator, according to the Department of Defense.

He has been deployed to Afghanistan, Iraq and Korea, the Department of Defense said.