An instrumental variable method for point processes: generalized Wald estimation based on deconvolution