Pete Buttigieg, the former US Transportation Secretary, announced on Thursday that he will not run for governor in Michigan or US Senate next year.