The Democratic Republic of Congo’s army said it foiled a coup attempt early on Sunday and arrested the perpetrators, including several foreigners, following attacks on the presidential palace and the residence of a close ally of Congo’s president that left three people dead in the capital Kinshasa.

At first, local media identified the armed men as Congolese soldiers but then reported they were linked to self-exiled opposition figure Christian Malanga, who later posted a video on Facebook threatening President Felix Tshisekedi.

Mr Malanga was killed at the presidential palace after he resisted arrest by guards, Congolese army spokesperson Brigadier General Sylvain Ekenge told The Associated Press (AP).

Mr Tshisekedi was re-elected as president in December in a chaotic vote amid calls for a revote from the opposition over what they said was a lack of transparency.

The Central African country has witnessed similar trends of disputed elections in the past.

Brig Gen Ekenge said on state television on Sunday that the attempted coup d’etat was “nipped in the bud by Congolese defence and security forces (and) the situation is under control”.

Among the perpetrators were three Americans, including the son of Mr Malanga, Brig Gen Ekenge later told the AP.

This also came amid a crisis gripping Mr Tshisekedi’s ruling party over an election for the parliament’s leadership, which was supposed to be held on Saturday but was postponed.

Clashes were reported on Sunday between men in military uniform and guards of Vital Kamerhe, a federal legislator and a candidate for speaker of the National Assembly of Congo, at his residence in Kinshasa, about two kilometres (1.2 miles) from the presidential palace and where some embassies are also located.

Mr Kamerhe’s guards stopped the armed men, Michel Moto Muhima, the politician’s spokesperson, said on the X social media platform, adding that two police officers and one of the attackers were killed in the shootout that started at around 4.30am local time.

Footage, seemingly from the area, showed military trucks and heavily armed men parading deserted streets in the neighbourhood as the army said the situation has been brought under control.

Meanwhile, the self-exiled Mr Malanga appeared in the livestreamed video at the presidential palace surrounded by several people in military uniform and said: “Felix, you’re out. We are coming for you.”

On his website, the opposition leader’s group – the United Congolese Party (UCP) – is described as “a grassroots platform that unifies the Congolese Diaspora around the world opposing the current Congolese dictatorship”.

Mr Tshisekedi has not so far addressed the public about Sunday’s events.

On Friday, he met parliamentarians and leaders of the Sacred Union of the Nation ruling coalition in an attempt to resolve the crisis seizing his party, which dominates the national assembly.

He said he would not “hesitate to dissolve the National Assembly and send everyone to new elections if these bad practices persist”.

The United States embassy in Congo issued a security alert on Sunday, urging caution after “reports of gunfire”.