Electrical resistivity and peak effect in superconducting niobium