Mr. Carswell, 45, was considered a great catch, defecting to UKIP from the Conservative Party in August 2014 because, he said, he believed that the Conservative government was ambivalent about holding a referendum to leave the European Union.