Infiltration bid foiled; 4 militants killed