So did the flagellum evolve?
Absolutely. and there's a pretty good explanation of how it could have evolved.
The requirement that we know exactly how is bogus. In a forensic investivation, the existence of multiple possible paths is not a problem.
The alternative, that God or some unknown alien, designed a device for the specific purpose of killing infants and children, seems a bit far fetched.