Depends on how you define the word "military": Air Force Reserve Judge Advocate General. Yes, he wore a uniform and swore an oath but he was not likely to be shot at in anger. Your call...
If he is currently a Reserve JAG, then Obama IS his Commander-in-Chief.
What I don’t know is if a retired military person still calls the President “Commander-in-Chief”.