Leaving Libya, UN chief warns against 'bloody confrontation' in Tripoli