Follow CBSPHILLY Facebook  | Twitter

PHILADELPHIA (CBS) — Cellphone video has surfaced on social media showing Philadelphia homicide detective allegedly caught in a sexual act in his car.

In the video, posted last week, the detective is confronted by a man walking down the street.

The detective uses a racial slur toward the man and an altercation ensues.

Credit: CBS3

“There is an internal investigation regarding a video that surfaced online, on social media platforms last week,” said Capt Sekou Kinebrew.

On Friday, the department acknowledged the video and investigation but also clears up growing speculation that this investigation or the high homicide rate had anything to do with a recent change in homicide captains.

“I have heard those reports too through the rumor mill but those reports are not accurate,” said Kinebrew.

The department pointing out that while Captain John Ryan headed homicide, detectives were able to solve 44 percent of the homicides in the city.

Ten percent higher than when he took over the division almost two years ago.

The department also said moving Captain Ryan was part of a bigger department-wide move.

Captain Ryan will now head Major Crimes, while Captain Jason Smith will take over homicide. The move was effective Friday morning.