The undertrial, Lakhanpal, who died in the firing, had been brought from Haryana for a court hearing.
The accused fired several rounds at the undertrial who died on the spot.
One Haryana police personnel who accompanied the victim, has also been injured in the incident.
After firing at the undertrial, the accused persons walked away from the court with the police offering no resistance, sources said.
IANS