The militants fired at the Army building in Kalaroos area during the night, a police official said.
Sunil Randhawa of the 17 Jammu and Kashmir Light Infantry (JAKLI) was injured in the incident.
The injured was taken to an Army hospital in Drugmulla where doctors stated his condition to be stable.
The Army and police have launched search operations in the area to track down the militants, he added. (PTI)