UN chief urges prevention, rights-based approach as terrorist threats evolve