A judge ordered the child placed in state custody Aug. 8 .