Wowak said Goulet was trying to dash back to the car when he started shooting at a team of police and deputies. Goulet was killed in the shootout.
"(Goulet) was distraught. He had intentions of potentially harming people and or the police," the sheriff said. "No doubt the officers that engaged Goulet stopped an imminent threat to the community."
Wowak said investigators were still trying to determine everything that happened when Sgt. Loran Butch Baker and Elizabeth Butler first made contact with Goulet.
His latest arrest, for being drunk in public, came Friday in Santa Cruz. That same evening, a colleague at the coffee shop where he was working filed a complaint with police for inappropriate sexual advances. He was fired the next day, and the detectives had been following up on that investigation.
Goulet's father said his son texted his twin brother on Tuesday, saying "'I'm in big trouble, I love you,'" the father recalled.
"Jeff texted back and Jeremy wouldn't answer and next thing we know he was shot and killed," he said.
Jeremy Goulet earned a bachelor's degree in criminal justice in 2000. But his admiration for the law turned to hatred amid his constant urges to peep on unsuspecting women, his father said.
"He's got one problem, peeping in windows," said his father. "I asked him, 'Why don't you just go to a strip club?' He said he wants a good girl that doesn't know she's being spied on, and said he couldn't stop doing it."
During college Jeremy Goulet served in the U.S. Marine Corps Reserve. His father said Jeremy was arrested for peeping at the time and charged with a misdemeanor.
After graduating from San Diego State University in 2000, he eventually landed in the U.S. Army, where he trained as a helicopter pilot. He was moving forward in his career when he again stumbled into legal troubles in the Army and was discharged, his father said.