(CNN) — A shooting that prompted a lockdown for hours at a Marine base in Virginia ended with three dead early Friday, including the gunman, authorities said.
Sgt. Christopher Zahn said they were notified of the shooting at Marine Corps Base Quantico late Thursday.
One person was fatally shot, and the gunman barricaded himself into a room, he said.
Using a public address system, police announced a base lockdown as the shooter was holed up inside a building.
Law enforcement officials from the base and Prince William County surrounded the area.
When they finally entered the building, they found the gunman dead of a self-inflicted gunshot wound and a second victim, he said.
The lockdown ended early Friday, a few hours after it started.
The suspect was a staff member at the Officer Candidate School, according to Capt Eric Flanagan, a Marine Corps spokesman. The motive is unknown.
It was unclear whether the three knew each other, but the alleged gunman and one of the victims are both Marines, according to Agustin Solivan, a Marine Corps spokesman.