You have to do what cops tell you, or you could get shot. You can always sue them afterwards, if you are alive.
Could the taser hit have caused a jerking movement that was mis-interpreted?