(Fotolia)

On Monday, a threesome turned violent after one of the participants decided to film the sexual encounter.

A 20-year-old man engaged in the encounter with a 21-year-old man and woman when one of the men started to film, and the woman became upset. The 21-year-old drove the woman home, and the victim decided to leave when the man returned.

According to a resident of the building, the woman, once she was home, contacted her boyfriend, who was not involved in the encounter, to claim that she had been raped, though police said that there was no evidence that the threesome was nonconsensual.

The dead man’s girlfriend allegedly received a message saying, “your boyfriend f—ed up and will be taken care of.”

At that point, surveillance caught two white man and a black man chasing the victim as he tried to leave the building. He was badly injured after being attacked with a baseball bat and knives.

— ‘Bachelor in Paradise’ cast member breaks silence on sexual assault scandal — 

The man knocked on a nearby apartment and collapsed, leaving a bloody handprint behind.

“He fell into her house, she opened the door … he was apologizing, ‘I’m so sorry. I’m so sorry,’” said a woman in the building whose relative opened the door. “He says, ‘They hit me in the head, they hit my head with a bat.’ She said there was so much blood just gushing out of him.”

The victim allegedly asked her not to call 911.

“He went to stand up, I don’t know if he was gonna try and leave or what, (and) collapsed on the floor,” the woman said. “She said his whole body started jerking and then they came, he barely had a pulse.”

He was taken to Methodist Hospital in Brooklyn, where he died of his injuries.