If they are convicted by a GCM, they can be confined, be fined, or dismissed from service. Even if confined at a disciplinary facility dropping them from the officer rolls isn't automatic nor is reduction. Dismissal is a punitive sentence that may or may not include forfeiture of all pay and allowances and confinement but includes a removal from officer rolls. Depends on the court. But the result is similar to a DD.
No dismissal. 4 years in Afghanistan and an honorable discharge would be fair.