Make sure the tone and content are official because an apology letter is a formal document. Say you are sorry and take responsibility for what happened. Give further information about the event, if required. But resist the need to defend yourself.