A wake for a Bloods gang member turned into a deadly firefight Monday night when two mourners at a Brooklyn church shot six people, killing two, after a dispute, sources said.

The shots rang out as scores of people were waiting to attend the wake for José “Cheo” Robles outside the Emmanuel Church of God on Flatbush Avenue near Foster Avenue in Kensington at around 8:30 p.m., according to law-enforcement sources.

“Everybody was waiting in line to pay their respects and a fight broke out,” said a mourner who asked not to be named.

“I saw some punches being thrown, some guy hit the ground and dropped, then the shooting started.”

Witnesses said an argument broke out and two people started firing their weapons.

As the gunfire erupted, mourners ran into the church for cover or ducked behind cars. Other mourners returned fire, including both the men who died.

“I threw my daughter against the floor and just jumped on top to protect her,” one witness said. “I was just thinking about my daughter.”

Another person inside the funeral home said the pastor ducked under the podium as some mourners ran into the basement to seek cover.

An aunt of Robles said she was standing in line when her brother was shot.

“I saw two guys shooting. My brother got shot in the hand,” she said.

A cousin of Robles rejected the idea that the shooting was gang related.

A cousin of Robles said the shooting was not gang related.

“All we want to do is bury our loved one,” she said.

“[The shooting] had nothing to do with him. He’s 38. He died in his sleep of natural causes.”

Four men and two women were struck in the firefight, sources said.

The injured were in stable to critical condition at Brookdale Hospital and Kings County Hospital.

Additional reporting by Leonica Valentine