Police Brig. Neville Malila told the South Africa Press Association that the prisoners were riding in a van outside the Johannesburg Prison.
He gave no further details.
It was not immediately clear what caused the explosion.
(Copyright 2012 by The Associated Press. All Rights Reserved.)