MARTINEZ — A man accused of shooting at a Contra Costa County Sheriff’s Office deputy earlier this year died Sunday, less than a week after authorities said he attempted suicide in his cell.