Libya's deputy pm resigns