A police officer killed four of the five terrorists in the Cambrils attack in Spain, it has been revealed.
Catalan regional police official Josep Lluis Trapero said it was "not easy" for the officer involved, despite being a professional.
One woman was killed and several others injured in the coastal town when five terrorists rammed an Audi A3 into people on the seafront.
:: LIVE: Spain attacks latest
It came hours after a van ploughed into pedestrians in Barcelona's famous Las Ramblas boulevard, killing 13 people in the tourist hot spot.
Police have said one of the five terrorists shot dead in Cambrils could have been the van driver in the Barcelona attack.
Four of them have been identified. They were aged 21, 27, 28 and 34. Three were Moroccan while another was Spanish.
:: Did attackers botch even deadlier rampage?
According to police, none of them were known to the security services for terror-related reasons.
The terrorists were wearing fake suicide belts and an axe and knives were also found in the vehicle.
Amateur video obtained by Sky News shows the moment one of the attackers was shot dead by police.
The footage, which was filmed on a phone by a British tourist, shows a man in an orange t-shirt with what appears to be a suicide vest strapped to his chest.
The man in the orange shirt is holding an object in his hand and shouting across the road's central barrier.
One police officer fires warning shots at the suspect. The man does not back down and continues to walk around the police car.
More shots are fired. The man falls - but then gets back up and walks in the direction of the police car.
A third man yells at the suspect "Abajo" - meaning "Go down".
It is 20 more seconds until the police officer shoots another round and the man in the orange shirt falls to the floor on one knee, then collapses, face down, in the middle of the road.
Sky News has edited the video so as to not show the moment of death.
Fitzroy Davis, from Wolverhampton, saw the whole incident.
He said: "We were sitting down in a bar and having something to eat and four girls ran in with fear on their faces and then next thing we see is people running up the street and one of the guys stood up and said 'run'.
"So everybody was running and I got my phone out and recorded what was going on."
Mr Davis, a judo coach in Spain who was with his students, described how "a guy came running up with silver stuff on him and something in his hand".
"And somebody shouted 'police!' - and within 30 seconds police came," he said.
"Next thing you know they draw their guns and they were shouting at the guy and shots were fired.
"He then fell down and, within two seconds, he stood back up. He then stepped over the fence, charged the police again, the police fired some more shots and then he fell down again."