Police said they challenged him before shots were fired