A Utah police officer who killed his wife, their two children, his mother-in-law and then himself received text messages from his wife just hours earlier threatening to leave him and take their children and confronting him for raping her, documents show.