A 19-year-old member of the Satan Disciples street gang has been accused of fatally shooting a man walking his dogs in Back of the Yards after mistaking his target for a member of the Latin Saints.

Hector Aguirre faces a charge of first-degree murder in the death of 25-year-old Jamil Al Shaubi, who had no gang affiliation, but happened to be walking in Latin Saints territory on Dec. 26, 2016, Cook County prosecutors said at a hearing last week.

The shooting is believed to be retaliation for a Satan Disciples member killed by the Latin Saints earlier that month, according to prosecutors.

Aguirre, believing Shaubi was a Latin Saints member, got out of a stolen Jeep Commander as Shaubi walked with two dogs in the 4400 block of South Hermitage; Aguirre then fired 16 shots with an assault-style rifle, prosecutors said at the hearing Thursday.

Shaubi was struck three times, including in his chest; one dog also was killed, prosecutors said.

After the shooting, captured by video surveillance, Aguirre got back in the Jeep and fled. The SUV was found burning an hour later in the 5100 block of South Hoyne.

In addition to the surveillance footage, a witness identified Aguirre as the gunman and another witness allegedly heard Aguirre talk about shooting a man with his dogs in front of a convenience store in the block.

Prosecutors said the rifle used in the shooting had been recovered from the home of another Satan Disciples member, who is believed to have driven the Jeep the night of the shooting.

At the time he was charged with Shaubi’s murder, Aguirre was serving a 10-year sentence at the downstate Pickneyville Correctional Center for aggravated battery with a firearm in a separate shooting he was found guilty of last year, according to prosecutors and state records.

Judge Susana Ortiz denied Aguirre bail at the hearing on the new charge and scheduled his next court date for Aug. 13.