Five militants and three soldiers were killed as the Army foiled an infiltration bid by terrorists along the Line of Control (LoC) in Jammu and Kashmir’s Kupwara district.