FREDERICKSBURG, Va. (WTVR) – A 50-year-old Fredericksburg man surrendered to police early Friday morning following a standoff that locked down an apartment complex Halloween night.

Michael Allen Bailey, 50, of Fredericksburg walked out of his Commons at Cowan Boulevard apartment and into police custody about 2:20 a.m. Bailey is charged with:

Malicious wounding

Attempted malicious wounding of a law enforcement officer

Four counts of use of a firearm in the commission of a felony

Burglary with intent to commit a felony

Possession of a firearm by a convicted felon

Discharging a firearm into an occupied dwelling

Destruction of property

Breaking and entering with intent to commit larceny or assault

Grand larceny of a firearm

Police were called to the apartment complex about 8:40 Halloween night after a man was found outside an apartment, shot in the shoulder and back.

The 52-year-old shooting victim told police he and Bailey had known each other for more than a year and "had many disputes" prior to the shooting.

Police called the victim's injuries non-life threatening.

When police arrived at the complex, Bailey was holding a gun and breaking out windows in his apartment, police said.

Fredericksburg Police called in backup from its Crisis Negotiation Team, Virginia State Police and others.

During the six-hour long standoff that ensued, police said Bailey fired his gun several times both inside and outside his apartment. A Fredericksburg Police officer did return fire.

Also during that time, police ordered the apartment complex under lockdown. Police evacuated some neighbors who lived next to Bailey and ordered other neighbors to stay inside their apartments.

After surrendering to police, Bailey was taken to Mary Washington Hospital to be treated for minor injuries, police said.

Police called the investigation into the situation "on ongoing." There are no details yet regarding what started the initial altercation.

This is the same apartment complex where a police officer was fatally shot in 2008. Officer Todd Bahr, 40, a member of the city force for just under two years, was killed by a single gunshot wound to the head, according to the Fredericksburg Free Lance Star.

The location is just a little over a mile away from the University of Mary Washington.