McCarthy appears to lose first vote to become speaker