The woman’s body was found near her 2-year-old’s, and the man who was charged was the child’s father, the authorities said.