Man who raped, killed 3-year-old girl dies in prison