Pete Hegseth’s crusade to oust a “once-in-a-generation general” stemmed from a photo that the defense secretary didn’t like.