If you cannot resist sending some kind of response, I would keep it along the lines of, "Stay safe" or "Take care of yourself."
Anything else, any indication of caring so much that you want to talk him out of it, will only suck you back into the drama.
If he wants to go to Afghanistan that is HIS choice. Not your problem.