The security forces fired tear gas to disperse thousands of protesters in central Beirut on Friday after some demonstrators had set fire to a nearby building.