York Co. deputy shoots man reaching for cane