Three-dimensional instabilities in the wake of a flapping wing at low Reynolds number