Attempted murder and other charges have been filed against a man who authorities said fired more than 40 shots Tuesday night at homes, cars and officers in the Sangaree community.

No one was hurt by the barrage, all fired from the suspect’s 227 Birmingham Drive home. But homes and cars were damaged, the Berkeley County Sheriff’s Office said.

Richard Justin Brewer, 31, is charged with attempted murder, malicious injury to property and seven counts of shooting into a dwelling, the Sheriff’s Office said.

Brewer is being held at Hill-Finklea Detention Center in Moncks Corner, sheriff’s spokesman Dan Moon said.

Moon said investigators estimate that 40 to 50 shots were fired from Brewer’s residence.

“I personally heard 24 shots,” Moon said, adding that shots were fired from the front and back sides of the Birmingham Drive home.

None of the nearly 50 law enforcement officers who surrounded the home returned fire, and more than three hours after the shooting began about 6:30 p.m., officers charged into the home and subdued Brewer with a stun gun, he said.

Moon said the shooting damaged vehicles and homes.

“He fired shots at his own walls, and even through a pull-down garage door,” he said.

Moon said some shots fired into walls exited the walls and endangered people and property outside.

Windows were shattered by shots fired from inside Brewer’s home, he said.