The explosion occurred when the soldiers were hammering an iron-like substance, SSP Inderbir Singh said.
A case has been registered in this connection and cause of blast would be known only after the forensic report comes, he added.