Witness footage was published on Friday of Spanish police in an armed encounter with five suspected terrorists in Cambrils.
Officers killed the men after an Audi A3 smashed into a group of people in the city hours after a larger attack killed 14 people in Barcelona, 60 miles northeast. Police have said the attacks are linked.
The footage does not show the moment the men were killed, but depicts police interacting with one of the suspects, who jumps over a barrier and moves towards the officers as shots ring out.
One video was sent to the BBC by Fitzroy Davies, a British judo instructor who was running a vacation camp in the city. Here's the footage:
'Pop pop... and he fell down.'
— BBC Radio 4 Today (@BBCr4today) August 18, 2017
Eyewitness Fitzroy Davies describes the moment police shoot a suspected terrorist in Cambrils #Barcelonapic.twitter.com/5kWzoJanl0
Davies said the man had been running away but then came back. He said he was shot once, then stood back up, crossed a central barrier in the road then advanced while "taunting" police. They then shot him again.
In the video, the man appears to have something metallic attached to his chest. Police have said the five men were wearing items that looked like suicide belts, but turned out to be fake.
Another video, showing the scene from further away and at a different angle, was uploaded by Eric Murillo, who works in online gaming. A barrage of shots can be heard, then the cameraman ducks out of the way. Here it is:
'Pop pop... and he fell down.'
— BBC Radio 4 Today (@BBCr4today) August 18, 2017
Eyewitness Fitzroy Davies describes the moment police shoot a suspected terrorist in Cambrils #Barcelonapic.twitter.com/5kWzoJanl0
Four of the suspected attackers in Cambrils were killed immediately. Police said on Friday that four of them were killed by a single police officer.
One suspect survived, but died of his injuries a short while later, according to the Mossos d'Esquadra regional police force.
Confirmamos que el 5º terrorista abatido en #Cambrils y que estaba herido, ha muerto / 5th terrorist wounded in #Cambrils finally has died
— Mossos (@mossos) August 18, 2017
Police carried out a series of controlled explosions around the area where the Audi had stopped.
Seven people were injured by the car, six civilians and a police officer, according to the Reuters news agency. One victim, a woman, later died.
Police said the attackers had knives and an axe in the car with them, and used the knife to stab at least one person.
Photographs showed the overturned vehicle still in place early Friday morning. It was towed away later.