Surveillance video captures the moment a hammer-wielding man attacked an NYPD officer and was subsequently shot by police.

Authorities say 30-year-old David Baril struck 27-year-old officer Lauren O’Rourke with a hammer at least three times. Officer Geraldo Casaigne, an Iraq War veteran, then shot the suspect twice, saving his partner’s life.

Hammer-Wielding Man Shot By NYC Police

Police say Baril was wanted for a series of hammer attacks in New York City. He has been arrested eight times before and reportedly suffers from a mental disorder.

Baril is listed in critical condition following the shooting.

Watch the dramatic surveillance video above. See a photo of the suspect below.