Three men forced their way into a house in Harleyville early Wednesday morning, fired shots at the resident as he ran and then held a gun to the head of his 12-year-old son, according to the Dorchester County Sheriff's Office.

The men left with $200 in cash and a cell phone and were arrested after a chase and an exchange of gunfire with a deputy, according to an incident report.

The three were identified as Claunce Mazyck, Michael Jamison and Justin Conan Simmons. Their ages and addresses were not immediately released.

Deputies were sent to a house on Hilton Street shortly before 2:30 a.m. to investigate a reported home invasion. While they were on their way to the house, they were told that a white Denali had left the scene heading toward Summerville.

The 39-year-old resident said three unknown men knocked on the back door, then burst inside when he cracked the door to see who was there. The resident said he heard two shots as he ran toward a bedroom and closed the door, then a man who was 6 feet 4 inches tall kicked in the door and demanded money.

The resident told deputies his 12-year-old son was asleep on a couch in the living room when the men broke in and he went into the bedroom to see what was going on. One of the men put a gun to the boy's head and forced him into a bathroom, according to the report.

The man's wife was hiding in the bathroom when the gunman forced the boy in there.

The men demanded money and left with $200 in cash and a cell phone. The resident said he opened the front door to get a description of the vehicle as it was leaving, and one of the occupants fired another shot in his direction.

Deputies found shell casings on the back porch, on a washing machine just inside the back door and in the yard near where the SUV was parked.

A Dorchester County deputy spotted a white Denali that matched the description of the vehicle leaving the scene speeding east on U.S. Highway 78. The deputy chased the SUV until it turned off into some woods off Kizer Lane near S.C. Highway 27.

As the deputy approached the vehicle, the occupants jumped out and ran, and somebody fired two shots at the deputy. The deputy returned fire and called for help. Deputies arrived on scene with dogs and captured three men.

There was no indication anybody was hit by the gunfire.

A fourth man was also taken into custody, according to Dorchester County Chief Deputy Sam Richardson. No information about him was released.

Natalie Caula contributed to this story. Reach Dave Munday at 937-5553.