An openly gay Democrat elected in one of the most conservative states in the U.S., Buttigieg served as a naval intelligence officer in Afghanistan