A man runs away from teargas after making off with goods from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)

JOHANNESBURG (AP) — South Africa's president condemned days of widespread looting and arson attacks on foreign-owned businesses across Johannesburg and the capital Pretoria, calling the violence "totally unacceptable."

"We are a country that is completely committed against xenophobia," President Cyril Ramaphosa said in a video statement published on Twitter Tuesday. "We do not allow and cannot tolerate attacks on people from other African countries."

Police fanned out across neighborhoods in Johannesburg and Pretoria as the violence extended into a third day in South Africa.

Police have arrested more than 100 people in five areas impacted by the violence. Many gutted, emptied shops remained closed as shop owners, many of them foreign, feared to return to their property.

Police minister Bheki Cele confirmed on Tuesday that five people had died since the the violence started on Sunday night.

"There is no justification whatsoever for people who have a sense that their jobs are being taken by people from foreign lands to attack them, to destroy properties, and actually to kill them," said Ramaphosa. "This must be stopped."

In Alexandra, a township in Johannesburg which was in lockdown on Tuesday after a spate of attacks in the morning, some foreigners had returned to their shops to assess the damage.

Abdullahi Duale, a Somali shop-owner whose store was looted in the early hours of the morning, said this was not the first time his business had been looted.

"The last time they took everything in the shop, and now they repeated it," said Duale. "We are always afraid that it can start anytime."

Others whose shops had survived the night were packing their belongings and leaving the area by morning.

Gauteng Premier David Makhura visited Alexandra with police officials and called for calm, pleading with the community to refrain from the violence.

Makhura said police had the capacity to deal with the unrest and would not need any reinforcement from the army, a concern that has emerged in recent days. In July, the government deployed armed soldiers to assist police in controlling gang-related violence in Cape Town.

The government would only consider calling on the army in Gauteng if the police said they were not able to diffuse the situation, he said.

"The job of the police is to police, and we know that the job of the army that is a very different job altogether. The army comes in to shoot down at the enemy," said Makhura. "So far the police are doing well."

On Monday, African governments warned citizens living in South Africa to take safety precautions and expressed frustration with latest wave of attacks targeting foreign-owned businesses in South Africa.

The Ethiopian Embassy in South Africa advised citizens to close their shops "until peace is restored", according to Ethiopian media, and Zambia's Ministry of Transport and Communications warned Zambian truck drivers not to travel in to the country.

Nigerian President Muhammadu Buhari said he has dispatched a Special Envoy to South Africa to convey his concerns to President Ramaphosa.

Buhari's office said he had has also instructed the Minister of Foreign Affairs, Geoffrey Onyeama, to summon the South African High Commissioner to Nigeria and get a brief on the situation; express Nigeria's displeasure over the treatment of its citizens and to get assurances of the safety of their lives and property.

Onyeama called the violence "sickening" on Twitter on Monday.

__

AP writer Sam Olukoya in Lagos, Nigeria contributed to this report.

A riot police officer throws a teargas canister as looters make off with goods from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A man lays on the ground after being arrested in Jeppe's Town, Johannesburg, Tuesday, Sept. 3, 2019. Police have struggled to stop looters who have been targeting businesses as unrest broke out in several spots in and around the city. (AP Photo)
People lay on the ground after being arrested in Jeppe's Town, Johannesburg, Tuesday, Sept. 3, 2019. Police have struggled to stop looters who have been targeting businesses as unrest broke out in several spots in and around the city. (AP Photo)
A man leaves a looted store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A store in Germiston,  is looted, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
Looters make off with goods from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A shoe shop owner is helped by a staff member to inspect the damage caused by looters in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A looter makes off with goods from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A business owner carries goods out of his damaged shop caused by looters in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A man runs away from teargas after making off with goods from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
A police truck patrols an area affected by looters from a store in Germiston, east of Johannesburg, South Africa, Tuesday, Sept. 3, 2019. Police had earlier fired rubber bullets as they struggled to stop looters who targeted businesses as unrest broke out in several spots in and around the city. (AP Photo/Themba Hadebe)
In this Monday, Sept. 2, 2019, photo, looters are arrested by police and foreign nationals outside their shop in Troyville, Johannesburg. Looting and violence spread across several neighborhoods in South Africa's major cities of Pretoria and Johannesburg after a spate of attacks that appeared to target foreign-owned shops. (AP Photo)
In this Monday, Sept. 2, 2019, photo, Nigerian foreign nationals remove a looter from their shops in Troyville, Johannesburg and take him to a waiting police van. Looting and violence spread across several neighbourhoods in South Africa's major cities of Pretoria and Johannesburg after a spate of attacks that appeared to target foreign-owned shops. (AP Photo)