Riots erupted in Libya after a disputed match, with fans setting government buildings on fire in Tripoli.