Tensions had been rising since an April attack on Indian-controlled Kashmir.