When you are clearly in the wrong, a pissing match will never end well for you. Apologize sincerely, fix it, maybe offer some form of remediation, and let it blow over. You will never be able to make yourself look better if you try to make excuses or attack the grieved party.