I can't point you to a book written by a soldier, but you might be able to find some conclusions by reading "The Authoritarians" by Bob Altemeyer[0], which studies, as you say, why people defend/enforce the power of evil people.
[0] https://www.theauthoritarians.org/options-for-getting-the-bo...