The 8-year-old girl threw her daughter into the well