ANTIOCH (CBS SF) — Antioch police said a retired Hercules police officer has been arrested and charged with attempted murder for allegedly firing shots at the home of his estranged wife.

The San Francisco Chronicle reported Thursday that 47-year-old John Goodner is being held at the the Contra Costa County Jail in Martinez in lieu of $1.8 million bail. Prosecutors have charged him with attempted murder, shooting into an occupied dwelling, making criminal threats and stalking, all felonies.

READ MORE: Sacramento Doctor Appears in Virtual Traffic Court While Performing Surgery

Goodner’s estranged wife called 911 early on Jan. 28, saying she was awakened when someone shot into her Antioch house through a bedroom wall.

Police determined that Goodner had been stalking and threatening his wife and had fired numerous shots into the home.

Officers went to his home on the 800 block of Putnam Street in Antioch where Gardner, they were told, had access to rifles, shotguns, ballistic vests and ammunition.

READ MORE: San Francisco Police Return Stolen Puppy to Richmond Family

While he did not immediately surrender and even after leaving his house, police said they had to use a K-9 before he was finally taken into custody.

The shooting happened two days after his wife filed a restraining order against him.

Goodner retired from the Hercules Police Department in 2009 after working there for 12 years.

MORE NEWS: San Jose Bomb Squad Renders Suspicious Device Safe at Attempted Bank Robbery Site

TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten. The Associated Press contributed to this report.