Dozens rescued, bodies pulled from S Africa mining pit