Durham Constabulary said a prisoner, understood to be Ian Huntley, was assaulted in the workshop of HMP Frankland near Durham on Thursday morning and taken to hospital.
Labour's chairwoman Anna Turley said: 'This result is clearly disappointing. By-elections are normally difficult for the party of government, and this election was no different.'