I hate to be that guy, but people like him that get convicted are typically much better off offing themselves than dealing with inmates in a federal prison. Makes perfect sense he would do this. Only takes a minute or two without supervision.
Plus, child predators aren't exactly know for their mental fortitude, which is why he was on watch to begin with. He knew what was waiting for him.