SUBIRATS, Spain — The woman who spotted him on Monday afternoon said the young man was wearing unusually bulky clothes for a hot summer day. On a second look, she told the police when she phoned in the tip, she had “no doubt” he was the fugitive suspected of driving the van in last week’s terrorist attack in Barcelona.

Two police officers in the area closed in and cornered the suspect, Younes Abouyaaqoub, 22, along a road that winds its way up through this wine region west of the city.

As soon as they did, he opened his jacket to reveal what looked like a suicide belt — which turned out to be fake — and shouted, “Allah is great.” The officers shot him dead.