Four Indian Army personnel and a police sub-inspector were among five security personnel in an encounter in Handwara, Jammu and Kashmir .