Terrorism and affinity of nations