SNYDER, Texas -

A police officer was shot in the head, and the gunman was then killed by another officer during an overnight shootout in Snyder.

Snyder police officer Darrell Campbell was shot by an unidentified gunman at 12:25 a.m. Tuesday, according to a news release from the Snyder Police Department.

Campbell and Officer Lee Ortiz responded to a "shots fired" call after midnight early Tuesday in the 700 block of 26th Street in Snyder.

Snyder Police Lt. Brian Haggard said that while Campbell and Ortiz were speaking with several individuals at the scene, a male produced a weapon and shot Campbell in the head and then confronted Ortiz.

Ortiz and the gunman were involved in a shooting, and the male suspect was killed.

The gunman's name had not been released, but police said he had a criminal history and was known to police.

Campbell was transferred to the University Medical Center just before 2 a.m.and underwent surgery for a gunshot wound to the head. He remained in critical condition at the hospital Tuesday night.

Campbell, 41, has served with the Snyder Police Department since Sept. 1, 2009. Ortiz, 37, has been with Snyder police since Oct. 23, 2003.

The case is being investigated by the Texas Rangers and the Snyder Police Department.

Stay tuned to KTXS and KTXS.com as we bring you the latest information as it's made available.

---

The Associated Press contributed to this report.