Although officials praised McKiernan , who also helped lead U.S. ground forces during the Iraq invasion , Gates acknowledged Monday that the move would end the 58-year-old general 's military career .