Two people allegedly shot at an undertrial at the Panipat court complex here on Thursday morning.
According to police, injured Sharvan Kumar was a murder accused involved in various crimes. He was taken to the Panipat court from a Karnal jail on Thursday morning where he is lodged.
Sharvan, who allegedly received a bullet in the waist, is reported to be out of danger.
The police arrested Pawan, a local resident, from the spot while his accomplice Sushil fled the spot.
SP KK Rao said a country-made pistol and a cartridge were recovered from Pawan. He said the initial investigation revealed that the victim and the assailant were together involved in various crimes. He said the incident was apparently the fallout of a rivalry.
Meanwhile, the incident has raised questions on the security at the court complex.