1.
Avoid
Have a clear path? Run.
2.
Barricade
If you can’t get out, pile furniture against a door. Be quiet; silence your phone.
3.
Confront
If you and others are in the open with nowhere to hide and no way out, use what you can to defend yourself — throw things, etc. — until first responders arrive.