GREENWOOD, S.C. (WSPA) – Police say two, including an unborn child, died when two people were shot early Tuesday morning in Greenwood.

The shooting happened around 1:30 a.m. at the Cardinal Glen Apartments on Parkway.

Greenwood Police said a man was getting into a car with two women when someone opened fire on them.

One woman, who was nine months pregnant at the time, and the man were hit by gunfire.

Police said the woman was shot in the back while the man was shot in the leg.

Both were driven to the hospital before police arrived at the scene.

Officers said the unborn child died.

The Greenwood County Coroner’s Office said 24-year-old Gabriel Dion Goode died Wednesday morning from his injuries at Self Regional Hospital.

A suspect, identified as 21-year-old Javier Williams, was taken into custody around 11:30 a.m. at an apartment on Haltiwanger Road and charged with murder and three counts of attempted murder, according to Greenwood Police.

Williams also faces drug and weapons charges.

Williams is being held in the Greenwood County Detention Center where he was denied bond.

He previously posted a $24,000 bond for previous drugs and weapons charges on Monday.