One killed and nine injured in militant attack in Jammu and Kashmir