Ugandan police have detained a lawmaker, and close ally of opposition leader Bobi Wine, for his alleged role in election-related violence last week.

Muwanga Kivumbi, a deputy leader of Wine's National Unity Platform (NUP), is accused of organising attacks on a police station and a vote-tallying centre after their electoral loss, which the party denies.

The police have said that seven people were killed in the incident, but the politician has given a different account, saying that 10 people were killed at his home as they waited for parliamentary election results.

The Uganda Police Force said in a post on X that Kivumbi would be arraigned before court in due course.

His arrest is in connection with recent incidents of political violence, it added.

Kivumbi's arrest follows tensions after last week's elections in which President Yoweri Museveni was re-elected for a seventh term.

During his victory speech, Museveni warned opposition figures including Kivumbi of coordinated plans to attack polling stations.

He said seven people were shot dead by police after groups of alleged opposition supporters, armed with machetes, attempted to carry out violent attacks in Butambala district outside the capital, Kampala.

Wine has denounced the election results as fake, citing electoral fraud, and alleged a silent massacre and a crackdown on political activists.

Since the election, Ugandan authorities have reportedly arrested dozens of youths on various charges linked to these incidents. Museveni first came to power as a rebel leader in 1986, marking 45 years in power by the end of this term in 2031. Uganda has not witnessed a peaceful transfer of presidential power since its independence.