Shoot them dead.
Someone throws a deadly object at me while I’m armed, and they don’t get a second chance.
Since that didn’t happen, prosecuting them for aggravated assault on a police officer should be good for about 10 years per rock. If they take a plea about $100k for legal and 10 years probation with loss of civil rights as a felon. At least in the adult white white male with no criminal record tier of the justice system.