JACKSON, Miss. — A fatal shooting between a Jackson, Mississippi police officer and two men early Wednesday morning was caught on video.

WAPT has posted gas station surveillance that shows the deadly encounter.

The video shows the officer next to a vehicle, talking to the driver with his door open.

The two begin to struggle shortly after the driver steps from the SUV. He was later identified by WAPT as 30-year-old Elliott Reed.

As Reed and the officer continue to struggle away from the vehicle, the passenger, 26-year-old Chauncy Reed, follows with what appears to be a firearm aimed toward the officer fighting with his brother.

The officer retreats behind his patrol car and the Reed brothers are shown getting back into the SUV as the window of the driver’s door appears to shatter.

Mississippi Police Officer

(Gas station video shared by WAPT)

Mississippi police officer

(Gas station video shared by WAPT)

Elliott Reed later died of his injuries, according to the Clarion Ledger’s Therese Apel.

Chauncy Reed is charged with aggravated assault on a police officer and capital murder.

On Friday, officials at the Hinds County jail in Raymond told local media Chauncy Reed was accidentally released from jail Thursday night, the Sun Herald reported.

The man was taken back into custody “hours later,” according to the AP, and is now jailed in Madison County.

Chauncy Reed faces a capital murder charge because “his decision to shoot caused his brother’s death,” police said.

The shooting occurred at the Valero gas station in the 900 block of Cooper Road. The shooting happened during a traffic stop, the Clarion Ledger reported.

The Mississippi Bureau of Investigation is handling the case.

The violent encounter can be viewed here.