Man involved in police shooting formally charged