Transition from order to chaos in the wake of an airfoil