Barcelona (Reuters): Spanish police shot dead five would-be attackers after confronting them early on Friday in a town south of Barcelona where hours earlier a suspected Islamist militant drove a van into crowds, killing 13 people and wounding scores of others.
Islamic State said the perpetrators had been responding to its call for action by carrying out Thursday's rampage along Barcelona 's most famous avenue, which was thronged with tourists enjoying an afternoon stroll at the peak of the summer season.
Bodies, many motionless, were left strewn across the avenue and authorities said the toll of dead , which included several children, could rise, with more than 100 injured.
Hours later in the early hours of Friday, as security forces hunted for the van's driver , police said they killed five suspects in Cambrils, 120 km (75 miles) south along the coast from Barcelona , to thwart a separate attack.
The five men attempted to drive into tourists on the Cambrils seafront, police said. Their car overturned and some of them began stabbing people. Four were shot dead at the scene and the fifth was killed a few hundred meters away, police said.
One civilian - a Spanish woman - was killed in the Cambrils incident while several other civilians and a police officer were injured. Police destroyed explosive belts the men had been wearing, though they turned out to be fake.
Shortly before midnight on Wednesday, the day before the van plowed into the tree-lined walkway of Barcelona 's Las Ramblas avenue, one person was killed in an explosion in a house in a separate town southwest of Barcelona , police said.
Police said they had arrested a Moroccan and a man from Spain's north African enclave of Melilla, though neither was the van driver . He was seen escaping on foot and was still at large. A third man was arrested in the town of Ripoll on Friday.
A judicial source said investigators believed a cell of at least eight people, possibly 12, may have been involved in the Barcelona and Cambrils operations and that it had been planning to use gas canisters.
Later on Friday, residents and tourists returned to Barcelona 's famous Las Ramblas promenade where hours earlier a white van had zigzagged at high speed through pedestrians and cyclists, leaving bodies and injured writhing in pain in its wake.
As Spain went into three days of mourning, people laid flowers and lit candles in memory of the victims along the promenade. Prime Minister Mariano Rajoy and Spain's king Felipe visited Barcelona 's main square nearby to observe a minute's silence.