VANCOUVER, Wash. -

 Medical examiner Dennis Wickham confirmed that the man accused of shooting a Vancouver, Washington, police officer during a traffic stop committed suicide.

James Sapp was pronounced dead Friday, almost 24 hours after jail deputies intervened during the suicide attempt. Wickham said Monday that Sapp hanged himself.

Sapp had pleaded not guilty to attempted murder and other charges in the June 30 shooting of Officer Dustin Goudschaal.

The motorcycle traffic officer was shot seven times, but was protected by a ballistic vest. He was hospitalized for a few days before being sent home to recover.