A man died of a heart attack while burying a woman he killed, S.C. sheriff says