A taser wouldn’t have prevented the attack. Unless cabin crew have their tasers out at all times, they won’t be protection against a passenger coming at them by surprise.
And the taser won’t be a deterrent either because an attack like this one is done by a passenger who is mentally unbalanced, not someone making a rational calculation.