Officials said the cable was damaged after being caught in the roller of a device to contain the shaking of the elevator car.