Show your teacher and explain it was an accident. I knocked a baseball through a school window pane in 4th grade. It was my 3rd grade teachers room. I told her I did it. She smiled and said not to worry.
Tell the school immediately! There's nothing you can do except replace the screen and that cost a lot. I'm sure this has happened before though so just tell them what happened