If she has done similar things before I would talk to your school councilor about it, or to another responsible adult. They can help you get out of the situation.
If this is the first time she has acted like this, I would assume that something happened earlier that day/week/month that is stressing her out. You should ask her if everything's ok or if there is anything you can help her with.