Ugandan police fired tear gas to disperse a demonstration in the capital Kampala on Monday and military units were deployed as unrest escalated over the beating of detained lawmakers.