A photo of the alleged shooter being arrested by police. A number of foreign nationals were injured when shots were fired in the Italian city of Macerata.
Polizia di Stato/Polizia di Stato -Italian Police
A photo of the alleged shooter being arrested by police. A number of foreign nationals were injured when shots were fired in the Italian city of Macerata.
Now playing
03:02
Mayor: Italy gunman targeted foreign nationals
Fox News/Twitter
Now playing
01:33
ADL wants Fox News to fire Tucker Carlson over racist comments
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Now playing
04:22
Levi's CEO has message for Mitch McConnell
Now playing
01:54
'You think I'm racist': Former Fox News host storms off camera
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Paul Morigi/Getty Images
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Now playing
01:46
'Duck Dynasty' stars discuss raising biracial son on new show
FOX/"The Masked Singer"
Now playing
01:24
Nick Cannon makes big splash in 'Masked Singer' return
The Drew Barrymore Show/YouTube
Now playing
01:26
'Mom' star speaks out about not having kids in real life
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses.  (Photo by Andrew Harrer/Bloomberg via Getty Images)
Andrew Harrer/Bloomberg/Getty Images
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses. (Photo by Andrew Harrer/Bloomberg via Getty Images)
Now playing
01:53
Restaurants face a nationwide ketchup packet shortage
Camerota Berman both
CNN
Camerota Berman both
Now playing
02:33
CNN anchor Alisyn Camerota gets surprise tribute from co-anchor
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period.  AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
EMMANUEL DUNAND/AFP/AFP via Getty Images
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period. AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
Now playing
02:47
Dick Parsons: Georgia law is a bald-faced attempt to suppress Black vote
Courtesy of Warner Bros. Picture
Now playing
02:54
'Godzilla vs. Kong' is a pandemic box office hit
Now playing
01:30
5 ways to cut your plastic waste
CNN/Getty Images
Now playing
04:40
Stelter: After elevating Gaetz, Fox News barely covering scandal
NASA/Goddard/University of Arizona
Now playing
01:08
See NASA spacecraft successfully land on an asteroid
Now playing
06:51
Alisyn Camerota's kids wish her good luck in new role on CNN
(CNN) —  

Police in Italy have arrested a man suspected of opening fire Saturday on foreign nationals in the town of Macerata, injuring six people.

A police photo shows a man being apprehended who appears to have an Italian flag wrapped around his neck.

The drive-by shootings were “racially motivated” and believed to be connected to the recent slaying of an 18-year-old Italian woman in which a Nigerian man was arrested, Macerata’s mayor, Romano Carancini, told CNN.

The victims included five people from Nigeria and one from Gambia, according to Lt. Col. Andrea Corinaldesi of the Carabinieri.

The shootings took place near where the dismembered body of Pamela Mastropietro was found Tuesday.

The suspect in Saturday’s shootings – identified by Carancini as Luca Traini, 28 – was apprehended by police while making a fascist salute in front of a monument to war victims. A gun was found in his car.

According to election records, Traini had been a candidate in the nearby town of Corridonia for the anti-immigration Northern League party in the 2017 local elections but received no votes.

Carancini confirmed to CNN that he was the same man.

“We must be united against hatred,” Carancini said.

The shooting underscored racial tensions in Italy ahead of the upcoming national elections. Italy’s Northern League party distanced itself from the shooter but the party’s leader Matteo Salvini said mass migration has caused similar violent acts.

“Violence is never the solution, violence is always to be condemned. And whoever is guilty must pay,” Salvini said in statement posted on Facebook. “Immigration out of control leads to chaos, anger, social confrontation.”

Marco Valerio Verni, the uncle of the slain woman Mastropietro, told CNN affiliate Rai News: “All we want is justice. We cannot fight barbarism with more barbarism. Such actions are not justifiable. This country is fed up – but such reactions can never be justified. We are a civilized country. We should not let barbarism prevail over civilization.”

CNN’s Nicola Ruotolo contributed to this report.