Defense Secretary Pete Hegseth has decided to remove retired Gen. Mark A. Milley’s security detail, suspend his security clearance, and order an inspector general inquiry into his behavior as the Pentagon’s top officer, senior defense officials said Tuesday, taking extraordinary action against a frequent target of President Donald Trump.