He left the Army in 2013. Three years later, feds say, he was plotting to help ISIS.