Pakistan’s claim of being merely a victim of terrorism has long collided with a record involving groups that have operated from its soil and targeted India.