The shootings took place late on Thursday near the Officer Candidate School at the Marine Corps Base in Quantico, and all three people who died were identified as Marines, Marines spokesman Sergeant Christopher Zahn said.
Zahn, who is based at Quantico, could give no details as to a motive for the shootings.
"The investigation is in the very early stages," he said.
"An isolated shooting incident has occurred at Officer Candidate School, Quantico," the base separately said on its Facebook page. "The suspect has been barricaded by law enforcement personnel."
The Facebook message told base residents to remain in their homes with their doors locked, until the lockdown was lifted early on Friday.
Chameleon John Coupons
6 Dollar Tshirts
Calling for Contributors!Got something to say?
We want to hear from you.
Submit your article contributions and participate in the world's largest independent online news community today!