Militants attack Jammu and Kashmir Police officer in Shopian district