UN envoy warns against military intervention in Libya