Armed officers challenged the man before shots were fired by police