"We are trying to find out what happened," news agency IANS quoted a police officer. Gangster Dinesh Pathak, who was injured, is an accused in the murder of Haryana folk singer Harshita Dahiya in October last year.
A police officer, who was close to where the firing took place, told news agency IANS that some "gun shots were fired". Police said the teenager fired at Dinesh Pathak when he and two other under-trials were brought to the court premises on Tuesday afternoon.
Police are investigating the incident.
(With inputs from IANS)
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. Election results will be out on May 23.