Army foils infiltration bid, two militants killed