Any prison official that knowingly allows this to happen should be tried and then executed.
This would seem to be a situation of that sort. If a man rapes or commits assault or murder while in prison, he is demonstrating that imprisonment alone is not adequate to restrain his aggressiveness or to protect society. Any guard or administrator who negligently or deliberately fails to suppress rape, is clearly also guilty.