Libya has been mired in chaos since a 2011 Nato-backed uprising that killed longtime dictator Muamar Gaddafi.