Opposition leader briefly held just before polls closed in election expected to give President Museveni another term.