PARIS — The French police on Thursday night confronted and fatally shot the man believed to be responsible for killing three people and injuring many more in Strasbourg earlier this week, bringing a tense, two-day manhunt to an end and providing a moment of relief to a nation shaken first by violent protests and then the rampage at a Christmas market.
The attack traumatized Strasbourg, and reminded the country of its continued vulnerability to terrorist attacks. French officials said Thursday they were worried that the police were overstretched after four weekends of handling nationwide protests by the Yellow Vest movement.
“The security forces have been under tremendous strain these last few weeks,” said Benjamin Griveaux, the government’s spokesman.
The hunt for the suspect, Chérif Chekatt, 29, consumed the work of more than 700 police officers and special investigators searching in and around Strasbourg. The chase ended on Thursday night, when three police officers opened fire on Mr. Chekatt, who shot at them as they pursued him in the residential Neudorf neighborhood of Strasbourg, Interior Minister Christophe Castaner said at a news conference in the city.
The police used surveillance and other information to track down Mr. Chekatt, he said.
The officers “saw an individual walking on the public street, who corresponded to the description,” of Mr. Chekatt, said Mr. Castaner, adding that the man “turned around firing at them, they returned fire and neutralized the assailant.”
As he fled the market on Tuesday night, Mr. Chekatt managed to elude the police and soldiers, even though he was injured in at least one encounter with them.
The attack prompted the authorities to place France on its highest level of alert, which allowed the government to heighten border security and search cars on the main highways leading to and from Strasbourg. Some officials feared that Mr. Chekatt might flee into Germany, given Strasbourg’s location on the French-German border.
French officials also moved quickly to tighten security at other Christmas markets, dedicating additional police officers to guard them. Christmas markets are common throughout Europe, and often located in the confines of old city centers, making safety difficult to ensure.
Earlier Thursday, the government signaled that it was worried about the ability of the police to handle protests scheduled for Saturday by the Yellow Vest movement in towns, cities and villages around the country, and that it would prefer the organizers called them off.
The movement, which is demanding lower taxes, is known for the yellow reflective vests that participants wear and that all French drivers are required to keep in their cars to signal when they are in distress.
“The anger has been heard, we have responded to it,” Mr. Griveaux, the government spokesman, said on CNews television, alluding to President Emmanuel Macron’s announcement on Monday that the government would put additional money in the pockets of minimum wage workers, starting in January, and reduce taxes on overtime pay and retirees.
“What we are asking you is to be reasonable on Saturday, and to not go protest,” he said, directing his remarks to the protesters.
It was unclear if any of the protesters would stay home since, within hours of the government request, some of the higher-profile figures in the Yellow Vests had called on supporters to come out again on Saturday.
French security officials had determined that Mr. Chekatt, whom witnesses described as saying “Allahu akbar,” or “God is Great,” in the course of the Christmas market attack, had terrorist motivations. It was unclear how and when exactly he adopted extremist beliefs but the French authorities said they first detected them during his time in prison. He had a long criminal record, with 27 convictions, mostly for robberies and assaults, in France, Germany and Switzerland.
Mr. Chekatt was one of about 20,000 people flagged for possible radicalization by the French security services, and was also flagged with what is known in France as a Fiche S, or an S file, indicating that he was a potential security risk. Such people are tracked by the authorities, but it is not possible to keep all of them under constant surveillance.
The Islamic State claimed on its official news agency site, Amaq, that the shooter was “a soldier of the Islamic State,” but used language that suggested the attack was likely inspired by the group’s ideology rather than directed by the group.
Among the victims on Tuesday night was a Frenchman who had been out to dinner with his wife in Strasbourg’s cobblestone-paved historic center, according to news media reports and television interviews with a waiter at the restaurant where they had been eating.
A Thai tourist was also killed, and his wife was injured, according to the Foreign Ministry of Thailand, and an Afghan, Kamal Naghchband, 44, who had emigrated to France with his wife and three children to escape the Taliban, died on Thursday after being in a coma for two days. A fourth person was still living, but was described by health officials as brain-dead on Thursday.
Mr. Naghchband was with his wife, his children and his mother on Tuesday night when he was shot in the head, said Eyup Sahin, the president of the mosque which Mr. Naghchband attended.
A mechanic by trade, Mr. Naghchband had rented space on the mosque’s property for the past three years to operate a garage, Mr. Sahin said.
“He was always dynamic, always helpful and willing to fix the mosque’s vehicles as fast as he and his employees could,” he added.
Mr. Sahin said that in France, many tended to forget that Muslims could also be victims of terrorism. “Terrorism has pervaded the whole humanity, not religions,” he said. “A terrorist has no religion or humanity in them.”
For those in the city not touched directly by the attacks, life was gradually returning to normal. Although the Christmas market was closed, some of the cafes and bars in the center city had already reopened even as homemade shrines were still burning commemorative candles and flowers were being laid in the victims’ memory.
The mayor of Strasbourg, Roland Ries, said that the end of the manhunt would allow the city to put its “sadness and mourning” behind it and “go back to Strasbourg’s normal life.”
Tomorrow, officials said, the Christmas market will reopen.