UN chief warns of risk of confrontation in Libya