UN special envoy Libya announces resignation