He is also leaving the armed forces to pursue a new career in the private sector