A man previously charged with attempted murder has now admitted murder after a female pensioner he attacked later died.