The result that caused me to feel like I recognized what you were referring to is probably this (it has about 500 google scholar citations), but it was linked from the wikipedia page on just world, and perhaps "the victim was viewed as suffering for the sake of Ss ("martyr" condition)" is a weaker condition than "forced to hurt", so it may not actually satisfy your description. Along the same lines there is also this: "When S perceived herself as responsible for the other person's fate, she tended to devalue her".
For bookwriting - Does anyone have a quick ref for experiments where the subject is forced to hurt someone, and then evaluates that person negatively ("The victim deserved it")? I can't recall the Google keyword; it doesn't show up for "blaming the victim" or "just-world hypothesis".