The 84-year-old man was an inmate at HMP Littlehey, a category-C sex offenders' prison.