Pakistan is fully behind these groups.
They're proxies used by the Pakistani government to wage war against India. I imagine the security agencies of Pakistan knew of the attack before hand. They'll act shocked and horrified in public while turning a blind eye to the activities of such groups within their territory.
