The 24-year-old former Army trainee was dishonorably discharged as part of his sentencing.