Incoming US defence chief promises to fight extremists in the ranks