The militants attacked the guard room of the court complex around 9PM and snatched five self-loading rifles (SLRs) from the policemen posted there.
All the five policemen were suspended for the alleged dereliction of duty as they offered no resistance when the militants looted their weapons, they said.
Following the snatching incident, an alert was sounded in the district.
The incident comes a day after militants gunned down seven persons, including five policemen, who were accompanying a district treasury van in adjoining Kulgam district.