The attackers allegedly attempted to open fire at the victim outside the court premises but failed, Pune police officials said.