Left-wing firebrand wins UK by-election