A police official said some miscreants started pelting stones at the police and the paramilitary CRPF personnel soon after the attack, triggering clashes.
He said the militants opened fire on the convoy near SKIMS Hospital Bemina at around 1.15 PM.
Two soldiers on board the last vehicle of the convoy were injured in the attack.The convoy was on its way from Parimpora to Panthachowk when the attack took place.
The troops retaliated, forcing the militants to flee from the spot, the official said.
Efforts were on to restore order in the area.