Former NATO commander warned White House Afghanistan pullout