Infiltration bid foiled in Kashmir, three militants killed