A video purportedly from al-Qaeda’s South Asia arm named India’s Prime Minister Narendra Modi as a foe for the first time.