Details were scant, but Gov. Josh Shapiro was headed to York County, where the shooting occurred, and several officials expressed concern for the police officers involved.