Prosecutors said the man approached relatives he had met at a funeral in July and gained their trust before carrying out the crimes.