UN chief urges global community to ensure Afghanistan does not become terror safe haven