Court orders dog euthanized after attack