An officer of the Indian Army and three security personnel, including a constable of the Border Security Force or BSF, were killed in the line of duty during a major anti-terror operation along the Line of Control or LoC in Jammu and Kashmir's Kupwara district, officials said.