Army foils infiltration bid along LoC, three militants killed