The Labour candidate was not withdrawn. He still stood in the election, under the Labour banner. He got over 2000 votes.
Had he won, he would have become an MP. I imagine Labour would gave immediately sacked him as a Labour MP and he would have become an independent.