Terrorism endangered life of all segments: Tahir Ashrafi