"How does one die of an accidental hanging?" Maybe his fellow inmates meant to hang some other murderer? Oops.
autoerotic asphyxiation