MT. VERNON, Wash. – A gunman who continued to fire at police throughout the evening Thursday night shot a police officer in the head.

Washington State Patrol Sgt. Keith Leary told reporters the officer was responding to the call just after 5:30 p.m. when a suspect began shooting from a house, hitting the officer. Leary said the victim from the initial call was grazed by a bullet and was taken to a local hospital for treatment. It wasn’t immediately known if the two shootings were connected, Leary said.

The officer was conscious and alert when taken to the local hospital, Leary said. Officers don’t why the suspect fired at the officer, reported Fox News.

“The suspect who allegedly shot at officers barricaded himself in a residence … and continued to fire shots at officers on scene throughout the evening,” read a police statement. “Officers from multiple agencies responded to the scene and closed roads in the immediate area. Hostage negotiators spent several hours communicating with the suspect.”

Law enforcement authorities have the suspect in custody, but details regarding the arrest were not provided. They said the “primary suspect” was taken into custody early Friday, following an hours long standoff, along with two other suspects.

The officer that was shot and critically wounded was responding to a call that a man had been shot in Mount Vernon, about 60 miles north of Seattle.

The 61-year-old unnamed officer was taken to the hospital. A spokeswoman for Harborview Medical Center in Seattle said the officer suffered a gunshot wound to the head, according to Fox News. He is now in serious but stable condition following surgery for his injuries.

No other details were made available.

Skagit Valley College said Thursday night that because of police activity the Mount Vernon campus was in lockdown and closed. The school tweeted “everyone get inside and stay inside.”