
Seven people including a police officer were injured during the incident in Cambrils, hours after a rampaging van driver left 13 people dead and over 100 wounded in Barcelona.
Bystanders ran for their lives as a gunfire broke out close to the coastal town's beachfront promenade early on Friday morning.
Residents of the popular tourist spot were ordered to take cover indoors as bullets tore through the air.