Critical effects in the electrical resistivity of samarium