A mass shooting at a crowded bar in the southern US state of South Carolina has left four people dead and at least 20 injured, officials said.

Hundreds of people were gathered at the popular bar on St Helena Island in the early hours of Sunday morning when gunfire broke out, leading multiple victims and witnesses to run to nearby businesses for shelter, according to the Beaufort County Sheriff's office.

Four people were declared dead at the bar and at least 20 were injured, including four who were sent to local hospitals in critical condition, the sheriff's office said.

The incident is still under investigation, and the sheriff's office is looking into possible suspects.

When police and first responders arrived, they found several people suffering from gunshot wounds, the sheriff's office said in a statement.

It's not clear if the shooting was random or targeted, and a spokesperson for the sheriff's office declined to share more details.

The bar where the shooting took place, Willie's Bar and Grill, offers Gullah-inspired cuisine and aims to spread the heartwarming spirit of the Gullah Geechee culture. The Gullah Geechee people are descendants of Africans who were enslaved on plantations along the southeastern US coast, including in South Carolina.

South Carolina Republican Representative Nancy Mace expressed her heartbreak over the incident through social media, sending prayers to the victims and their families.

Willie's Bar and Grill did not respond immediately to a request for comment.