One of the victims, identified as Ankit Dagar, is accused in a case and had come to the court for hearing today, a police officer said.
In the afternoon, Dagar had a heated argument with the complainant's family. After this, when he was standing at a juice stall outside gate number 3 of the court, two men riding a motorcycle opened fire at him.
While one bullet hit Dagar, another hit an attendant at the juice stall.
By the time security personnel reached, the accused had fled from the spot. The injured were taken to a hospital and police have registered a case, the officer said.