Militants flee after brief gunfight in Shopian