A man fired at police officers responding to a domestic dispute in Fairfax County, Virginia, Wednesday night, just days after an officer responding to a similar incident in Northern Virginia was shot and killed, police say.

Syed Javid, 19, walked out of his home carrying two guns and opened fire on officers about 5 p.m. in the Franconia section of the county, police said. Officers in turn fired beanbags at him and released a police dog.

Officers were called to a home on the 6200 block of Larkspur Drive about 5 p.m. for what was initially reported as a suspicious event, possibly with guns involved. Officers had been called to the same home about 9 a.m. because of a physical fight between Javid and his father, police said.

As officers approached the home, they were fired at, police said.

Javid then emerged wearing matching camouflage pants and a hat, carrying two guns, police said.

As a SWAT team responded, neighbors were warned to take cover in their basements, and nearby streets were closed.

"Initially, he dropped the long gun, refused commands but then dropped the handgun," Police Chief Ed Roessler said. "He was also given commands to go down to the ground so we could execute a safe arrest. He refused those commands and started to go towards the officers."

The long gun was determined to be a realistic-looking replica of an assault rifle.

No officers or neighbors were hurt. Javid was taken to a waiting ambulance with minor injuries.

Neighbor Katie Harvey was trying to pick up her young son from her parents house and found streets in the area blocked.

"My parents had been locked in the basement," she said.

The police chief noted that Prince William County lost an officer on Saturday as she responded to an eerily similar domestic dispute.

"Officer Ashley Guindon gave her life in the line of duty for the same type of event," Roessler said. "This is what we do every day in the Fairfax County Police Department and nationwide as a profession."

Javid will be charged pending consultations with prosecutors, the police chief said.