Four of the five suspected terrorists in the Cambrils attack were shot dead by the same police officer.
The group were all killed after ramming their car into a group of people in the Spanish coastal town on Friday morning.
Several pedestrians were injured, one who later died in hospital, just hours after a similar incident in Barcelona where 13 people were left dead.
Catalonian authorities tweeted that the same police officer had shot dead four of the five Cambrils attackers.
Footage of the assailants lying dead on the ground showed they had been wearing fake suicide belts.
Two men charged with murder and membership of a terror organisation as judge orders a fourth suspect to be freed on bail.
Younes Abouyaaqoub was wearing a fake bomb vest when he was killed in the town of Subirats, about 30 miles west of Barcelona.
The man believed to be responsible for driving a van into pedestrians in Barcelona has been pictured as the death toll rises to 15.