'Nothing justifies terrorism', UN chief says