NAPA (CBS SF) — An elderly man who had been in custody after allegedly shooting at a Daly City doctor in 2014 has died at a hospital, San Mateo County prosecutors said Thursday.

Raymond Iwase, 87, died Tuesday night at San Mateo Medical Center, according to the district attorney’s office.

Iwase was accused of entering a medical office building on Southgate Avenue on April 23, 2014, and shot at a doctor he was angry at for treatment for pain years earlier, prosecutors said.

The doctor ducked around a corner and avoided the gunfire, which did not strike anyone else either. Iwase walked home where he was later arrested, prosecutors said.

In October 2014, he was sent to Napa State Hospital after doctors determined he was not mentally competent to stand trial.

This past November, a San Mateo County Superior Court judge referred the case to the County Conservator, which serves frail elderly adults who are unable to provide for their own care, prosecutors said.

TM and © Copyright 2017 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2017 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Bay City News Service contributed to this report.