Gunmen dressed as lawyers shot dead a notorious Indian criminal inside a Delhi courtroom before police killed the two assailants, investigators said.
Jitendra Gogi, Delhi's most-wanted mobster before he was detained in March last year, was standing before a judge in the court when two men suddenly opened fire, police told AFP.
Witnesses told media that about a dozen shots were fired inside the court.
Gogi was hit multiple times before the gunmen were killed by specialist protection officers.
Media reports, quoting police, said the gunmen were from a rival gang.
Mobile phone videos of the shooting at the court in the Rohini district of Delhi showed everyone running for cover in the corridor outside the court as gunshots rang out.
Gogi, who was about 30, had been linked to brutal gang battles, murders, robberies and extortion in Delhi and states across northern India.
He was first arrested in 2016 but escaped from police custody, and had evaded capture until last year.
Gogi's violent reputation had made him a target for police and rivals, with media reports saying that other gangs were enraged at his moves into their territory.
Delhi police said after his arrest last year that Gogi was in a particularly bitter battle with a gang leader for control of regions in northern India.
Questions are regularly raised about security in Indian courts.
The Rohini complex often deals with cases linked to high profile criminals.