Indian officials said troops crossed into Pakistan-ruled Kashmir and killed suspected militants preparing to carry out attacks on cities.