President was counseled by senior administration officials about dismissing his national security adviser