Police hunting the van driver behind the Barcelona terror attack say they have shot dead a suspect wearing what appeared to be a suicide belt.