Cambrils is more than two hours south of Barcelona by car. It was not immediately clear how the operation was linked to the van attack in that city.