“We will come down heavily on the perpetrators with the harshest consequences,” India’s home minister, Amit Shah, wrote on social media. He arrived in Srinagar, the main city in Indian-controlled Kashmir, and convened a meeting with top security officials.