Lucknow: An under-trial in Aligarh, Hoshiar Singh was shot to death when he was brought for a court appearance to the civil court.
His brother Nira was critically injured in the attack.
Hoshiar Singh was being escorted by the police from the court room to the lockup after his hearing when they were ambushed by two men who then shot him.
Deputy Inspector General of police Prakash D. said the assailants, who fired 10 bullets, escaped after the attack.
Protests broke out in the court premises as lawyers raised anti-police slogans. Mr Prakash was heckled by lawyers when he reached the site.
Hoshiar Singh was an accused in the murder of a property dealer in Aligarh district and it is suspected that the rival party orchestrated this assault on him.