Critical scattering in the electrical resistance of GdB6 and DyB6