The speed and deadliness of recent high-profile shootings have prompted police departments to recommend fleeing, hiding or fighting in the event of a mass attack, instead of remaining passive and waiting for help.