Updated

An hours-long standoff has ended in Virginia with one person in custody and a police officer taken to surgery for a gunshot wound.

Media outlets reported Tuesday the officer is expected to survive.

Virginia Beach Police spokeswoman Master Police Officer Tonya Pierce says the incident began about 6:30 a.m. when officers tried to serve a warrant at a Virginia Beach house for distribution of child pornography. One officer was shot and two others were slightly injured. A man then barricaded himself inside the home.

Police say the man eventually walked out of the home and was taken into custody. He was treated and released for a bite from a police dog.

Virginia Beach Police Benevolent Association President Brian Luciano says the officer who was shot was alert and talking.