Why did the National Security Advisor resign?

Janjua had played a key role in resuming back-channel dialogue with New Delhi ever since taking charge in October 2015