A man who authorities say walked into a Ladson pawnshop and asked to look at an AR-15 rifle before inserting a loaded magazine and opening fire was denied bail during a Wednesday night court appearance.

Gregory Franklin Westfall, 36, faces four felony counts in connection with Tuesday's incident at Big Bucks Pawn, 113 College Park Road, according to affidavits.

"The defendant planned this action out with the intent of causing social change," the affidavits said. 

In all, Westfall was charged with two counts of attempted murder, and one count each of possession of a weapon during the commission of a violent crime and armed robbery, said Chief Deputy Mike Cochran, a Berkeley County Sheriff's Office spokesman. His last known address was West Landmark Street in Boise, Idaho.

The Sheriff's Office also released surveillance video footage from inside the store at the time of the shooting.

An investigation into the incident is ongoing, according to Cochran, who added that Westfall moved to South Carolina sometime in the last month but hadn't established residence.

Deputies were called around 4:20 p.m. to the shop, he said. They learned that a man came into the store and asked to see an AR-15 rifle.

"While inspecting the rifle, the subject took out a loaded magazine for an AR-15 that he had on his person and inserted it into the (rifle)," he said. "He then began to shoot into the store and at two of the employees inside of the store."

A store employee returned fire and the suspect, later identified as Westfall, fled the store, Cochran said.

Deputies found him in a wooded area behind the pawnshop, he said. He still had the AR-15 rifle in his possession and was taken into custody without further incident.

"Westfall was wearing ballistic armor at the time of the incident," Cochran said. "When Berkeley County sheriff's detectives interviewed Westfall, he made several statements regarding 9/11 and that 'the Russians' were sending him messages."

The Charleston County Bomb Squad was called to investigate the contents of Westfall's Dodge Ram pickup truck and a book bag, he said. The Bureau of Alcohol, Tobacco, Firearms and Explosives, and the FBI were also called to assist.

Reach Gregory Yee at 843-937-5908. Follow him on Twitter @GregoryYYee.

Gregory Yee covers breaking news and public safety. He's a native Angeleno and previously covered crime and courts for the Press-Telegram in Long Beach, CA. He studied journalism and Spanish literature at the University of California, Irvine.