Prison officials said the riot broke out late Monday , as inmates battled for control of cell blocks inside the prison west of Caracas .