A young boy whose remains were discovered buried at a New Mexico desert compound died during a ritual ceremony to "cast out demonic spirits," other children found at the remote homestead told investigators, a prosecutor said in court on Monday.