Security arrival
When the police arrive at the scene, be calm and drop any weapon or items that you may be holding and make your hands visible. Listen to their instructions and follow them.
Meanwhile, here are other proactive ways you can protect yourself on a regular basis and not essentially during an attack: