If I worked in retail (which I don't) I would prioritize my own safety and that of others in the situation above company policy. You can get another job if you get fired. However, if you comply with company policy only to be shot and killed by the robber, it really doesn't do anything good for you. JMHO.
** Removed **