Ps to OP: yes you are right to blame the neighbor/ owner, not the dog. However, i disagree that your actions caused the situation to "spiral out of control."  The dog was attacking your ducks on Your property, & you attempted to protect your ducks.  Most dogs will NOT bite when cornered; they will do their best to flee, or simply cower.  Whether fear-aggressive, people-aggressive, livestock-aggressive, etc etc, you DID encounter an aggressive dog. That BIT you.  Your actions didnt cause it to be aggressive; it already was.  Please keep the blame on the owner (& by extension the aggressive dog), & not in any way on yourself.  Again, you did nothing wrong in attempting to protect your ducks.  Dont get me wrong; im not confrontational by nature and am very grateful i have good (rural) neighbors.  But your neighbor, like her dog, has ALSO essentially attacked you first.  Thats why i adamantly say to stand your ground.