AP

Kang may suffer from service-related mental health issues that the government was aware of but neglected to treat, his defense attorney, Birney Bervar has said.

Bervar is seeking a mental health evaluation for Kang, whose trial was set for September.

When Kang met with the undercover agents he thought were from the Islamic State group at a home in Honolulu, he pledged allegiance to the group and kissed an Islamic State flag, according to court documents.

“Kang’s military training, weapons abilities and personal combat skills, coupled with his strong stated desire to kill people in the name of Islamic State, makes him one of the more dangerous criminal defendants to have been charged in this judicial district,” prosecutors wrote in a motion asking that be held without bail.

A judge previously granted the request for no bail.

In a separate case, a 22-year-old California man has been charged with attempting to support terrorism by allegedly using social media to promote the Islamic State group and offering to join the organization, according to court documents.

Federal prosecutors allege Amer Sinan Alhaggagi “went so far as to meet with undercover agents on multiple occasions to plan a potential terrorist attack,” said a court filing unsealed Friday.

His defense lawyer told the San Francisco Chronicle that the allegations are baseless and stem from idle talk in late-night internet chat rooms.