This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A 43-year-old man armed with a machete broke the windshield of an Oceanside police patrol vehicle and stabbed a police dog Tuesday, authorities said.

The man also stabbed himself as police tried to detain him, officials said. The dog was expected to recover.

The attack started about 5 p.m. as an officer was driving in heavy traffic on College Drive, police spokesman Tom Bussey said in a release.

The man was yelling at the officer from across the street, and then approached the patrol car, swinging the machete in a stabbing motion. The man came closer and broke the officer’s windshield with the weapon, police said.

Read the full story at LATimes.com.