Ram Iqbal Ravidas, 40, was fired upon in front of the gate of the juvenile court where he was to produce the undertrial for the determination of his age, Vaishali Superintendent of Police, Vivek Kumar said.
The Superintendent of Police said Ravidas received three bullet injuries and died on his way to a hospital even as the undertrial escaped on the motorcycle which was being driven by the unidentified attacker.
The assailant also fired a few gunshots in the air to scare the onlookers, the SP said.
Raids were on to arrest the attacker and also the undertrial who fled from custody, the SP said.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.