The police shut down the Champs-Élysées after a shootout between officers and an attacker days before France holds the first round of its presidential election.