A 33-year-old prisoner died one day after a 37-year-old inmate at the same prison was attacked and killed, officials said.