India said it had conducted "surgical strikes" on suspected militants preparing to infiltrate from Pakistan-ruled Kashmir.