A low-tech terror attack in Barcelona follows a familiar grim script