Retiring Defense Secretary Robert Gates says his worry is that troops are withdrawn from Afghanistan