You looked after a friend’s house while he/she was away on holidays. While you were there, you broke one of the windows.
Write to your friend. In the letter,
Explain what happened
Apologise for breaking the window
Say how you are going to fix the issue