Two people were killed on Wednesday in the South African township of Soweto, police said, in an outbreak of rioting and looting targeting foreign-owned shops.
Attacks against foreigners in the country have erupted regularly in recent years, fuelled by high unemployment and poverty.
“Two people were killed and two people were arrested. One was arrested for murder and one for attempted murder,” police spokesman Lungelo Dlamini told AFP.
He confirmed that the shops looted in the White City district of Soweto, outside Johannesburg, were foreign-owned, but declined to give nationalities.
Local media said Somalis were among those targeted after a Somali shopkeeper allegedly opened fire on robbers.
Tensions have been rising in some townships in recent months over accusations of foreigners selling expired food products.
The government on Wednesday issued a statement urging people to “refrain from taking the law into their own hands” over alleged unsafe goods.
Last year, shops and homes in Pretoria owned by migrants were looted and torched over two weeks, with some South Africans alleging the properties were brothels and drug dens.
In 2008, South Africa experienced its worst bout of xenophobic violence, which left 62 people dead.
In 2015, at least seven people died in similar unrest in Johannesburg and the Indian Ocean city of Durban as immigrants were hunted down and attacked by gangs.