Indian prime minister Modi decried the ‘heinous act’ and pledged that the militants ’will be brought to justice’