The incident took place at Marine Corps Base Quantico. The shooter, a staff member at the officer candidate school, gunned down a man and a woman, the spokesmen said. All are Marines.
The incident shocked the military community. Pentagon Press Secretary George Little said in a Twitter message that he was “saddened to hear of loss of life” at Quantico.
The notification of a shooting came about 11 p.m. when authorities found one dead victim, according to Agustin Solivan, a Marine Corps spokesman.
Using a public address system, police announced a lockdown at Marine Corps Base Quantico and surrounded the building where the suspect was barricaded. They ordered everyone to stay in their homes, doors locked.
Authorities from the base and Prince William County, Virginia, surrounded the shooter, who was in barracks not far from where the first shooting occurred.
Law enforcement officials entered the room two hours later and discovered the shooter dead of a self-inflicted wound. The female victim was in the room with him, fatally shot.
The lockdown ended early Friday, a few hours after it started,.
It was unclear whether the three knew each other, Solivan said, and the motive of the shooting is unknown.
CNN’s Jake Carpenter contributed to this report
™ & © 2012 Cable News Network, Inc., a Time Warner Company. All rights reserved.