The shooting on the Champs-Élysées, which killed an officer and wounded three others, unsettled France just days before the first round of voting for president.