The resignation marks another major change at the Pentagon, following a series of recent firings and departures.