A Hartlepool Borough Council by-election is set to take place after a Labour councillor stood down "with a heavy heart" on obtaining a new teaching job.