The incident took place in the afternoon when Amit Kumar alias Meet was heading towards his car, parked near the temple, after paying obeisance there, they said.
"Two to three armed men in a car fired several shots at Amit, injuring him seriously," Inspector Mohinder Singh said.
Later, he breathed his last at the Post Graduate Institute Of Medical Education And Research (PGIMER) hospital in Chandigarh, police said.
The assailants fled the scene after the incident, they said.
Amit, who was working as a bouncer, had come to the temple along with his mother. She was behind him when the shots were fired, police said.
Singh said they are investigating the matter.