Terror attack overshadows French election