As soon as the police van carrying the prisoners reached the civil court premises, two crude bombs exploded, Superintendent of Police Suresh Chaudhary said.
One live bomb was recovered from the spot, he said.
Taking advantage of the commotion after the explosion, the dacoit Sant Lal Sah started to run but was caught by the police, the SP said.
A woman has been taken into custody in this connection, the SP said.
Later, additional police force was rushed to the civil court and the prisoners were produced before the court, the SP said.