International intelligence agencies had warned that the little-known group, National Thowfeek Jamaath, was planning attacks, but word apparently did not reach the prime minister’s office until after the massacre, exposing the continuing political turmoil in the highest levels of the Sri Lankan government.