3 militants killed in encounter in Jammu and Kashmir