A person having a barbed wire fence shall keep it in good repair. When a domesticated animal is killed or injured by coming in contact with a barbed wire fence that is not at the time of injury kept in substantial compliance with this section and AS 03.30.030, the owner of the animal may recover from the owner of the fence a sum equal to the amount of damages sustained in the killing or injury to the animal.