Ricardo Castro, 43, was injured by a sheriff’s deputy after officials said he shot at deputies.