India says Pak will have consequences for terrorism