He has been defense secretary for four years, helping lead Britain’s response to Russia’s invasion of Ukraine.