Have a clear path? Run.
If you can’t get out, pile furniture against a door. Be quiet; silence your phone.
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.