Two farmers have freed stags that were caught in a fence while fighting.