Terrorist groups were using religious differences to spark intolerance between religious groups, and incite anger between groups that had lived together for centuries.