After a 35-year government career that spanned the world under six presidents, and even included a brief stint as acting secretary of state, the State Department’s top career diplomat has announced his retirement.