Infiltration bid foiled, four militants killed