SUBIRATS, Spain — The fugitive believed to have driven the van in last week’s terrorist attacks in Spain was shot dead by the police on Monday in a village outside Barcelona after a Europeanwide dragnet, the police announced.
The fugitive, Younes Abouyaaqoub, 22, used a van to mow down a crowd on Las Ramblas, Barcelona’s central boulevard, last Thursday, killing 13 people, according to the police. He then stole a car, killed its driver and made his getaway with the driver’s body still inside.
A manhunt stretching across Europe was undertaken, and France, Italy and other countries tightened security and border controls amid widespread speculation that Mr. Abouyaaqoub might have fled Spain. Over the weekend, the authorities had said they could not be certain that he was still on Spanish soil.
But at 4:10 p.m. Monday, attention quickly turned to Subirats, a collection of villages about 20 miles west of Barcelona. The town was placed on lockdown as the authorities announced that a man wearing an explosive belt had been “shot down.”
The identity of the suspect was not clear for about two hours; a robot, operated by a police bomb squad, was going through the explosive device to ensure that there was no danger. But at 6:20 p.m., the police announcedthat the man who had been shot was indeed Mr. Abouyaaqoub.
Residents of Subirats appeared frightened but unharmed.
“They told us to keep inside, to be ready for anything,” Pere Pons, the mayor of Subirats, told Catalan radio. “A little while ago the police called us to stay in our houses. To keep calm, to wait for more police to arrive.”
He added: “The entire town is surrounded by police.”
The police operation was continuing, however, amid reports that the fugitive may have had an accomplice during his flight and that the police were inspecting an abandoned van. The authorities in Sant Sadurní, another town west of Barcelona, issued a message on Twitter warning residents of a police intervention and urging them to remain calm.
The death toll from the attacks rose to 15 on Monday. In addition to the 13 people killed in the van attack in Barcelona, a 14th person died hours later in a related attack in the town of Cambrils, and the police on Monday announced a 15th victim: the driver of the car that Mr. Abouyaaqoub stole and used to make his escape.
The attacks were Spain’s deadliest terrorist assault since 2004, when terrorists bombed commuter trains in Madrid, killing 192 people.
Also on Monday, the authorities said that an imam believed to have inspired the twin attacks had almost certainly died on Wednesday when a house that the terrorists used as a bomb factory blew up — an event that appears to have precipitated the attacks.
The imam, Abdelbaki Essati, preached in the town of Ripoll, home to many of the members of the terrorist cell, which the authorities say included at least 12 people.
Investigators believe the planning for the plot may have begun not long after Mr. Essati’s arrival, a year ago, at the second of two mosques where he worked in Ripoll.
The remains of two people were found at the house where the explosion took place, in the town of Alcanar, south of Barcelona.
Maj. Josep Lluís Trapero, the police chief in the Catalonia region, of which Barcelona is the capital, said at a news conference on Monday that the police had “solid indications” that Mr. Essati was one of them, although they were awaiting the results of DNA tests. The other is yet to be positively identified.
The police also said on Monday that they were certain that Mr. Abouyaaqoub was the driver of the van.
They released surveillance camera images of Mr. Abouyaaqoub, wearing a striped polo shirt, and gave details about how he managed to escape from downtown Barcelona. “We believe he was the only one in the van and driving it,” Major Trapero said.
Mr. Abouyaaqoub fled on foot from Las Ramblas, the police said, and crossed another popular tourist destination, La Boqueria, a busy food market. He then spotted a stationary car in the city’s university district, killed the owner and put the body on the back seat. Then he forced his way through a police check point.
The driver, Pau Pérez, was found stabbed to death in his vehicle on the outskirts of Barcelona.
Two of the 15 people killed were children, including a 7-year-old who had Australian and British citizenship. Six victims were Spanish, including one who also held an Argentine passport. Three were Italians, two were Portuguese, one Belgian, one American and one Canadian, the authorities said.
Fifty of the victims remained in hospitals on Monday, 12 of them in critical condition, down from the 126 who were taken to the hospital immediately after the attacks.
The police chief said that the investigation had gained an international dimension, implying that other countries’ police and intelligence agencies were now involved, but did not provide details.
He also would not comment on reports that the imam had longstanding ties to extremists and had spent time overseas, including in Belgium early last year, shortly before terrorists attacked the airport and subway in Brussels. The imam spent time in prison in Spain on drug-related charges, but had no record for terrorism-related activities.
Major Trapero defended the level of police surveillance ahead of the attacks.
The country has avoided major acts of jihadist terrorism since the Brussels attack, even as the Islamic State and other extremists struck other cities across Europe.
Major Trapero said that it would be “playing dirty” to accuse the police of lapses, and that the police had never received information that would have justified acting against members of the cell.
Asked why nobody had raised the alarm in Alcanar, as terrorists stored over 100 gas cylinders in their bomb-making house, Major Trapero said: “We have to be cautious not to criminalize the ones who didn’t see or act.”
Even with Mr. Abouyaaqoub on the run, Spain kept its level of terrorism alert on Monday at four, on a scale from one to five.
At a news conference in Madrid, Interior Minister Juan Ignacio Zoido praised the “fluid” cooperation between the authorities in Barcelona and Madrid since the attacks. Mr. Zoido urged citizens to join a march next Saturday in Barcelona to condemn terrorism. “We all make ours the suffering of Barcelona,” he said.