As shots rang out, an emergency room doctor sprang into action