PITTSBURGH (KDKA) — A post on social media led to police investigating a man allegedly taking pictures of children at Sandcastle Water Park.

A woman noticed a man snapping pictures from his car in a back parking lot at the water park Tuesday evening around 6 p.m.

READ MORE: Police: Female Victim Killed After Being Struck By Car, Male Victim Shot In The Head

She posted about the perceived wrongdoing on Facebook, and someone saw the post and alerted the West Homestead Police Department.

READ MORE: Pittsburgh Weather: 1-3 Inches Of Snow Expected As Winter Weather Advisory Takes Effect

West Homestead Chief of Police, Christopher Deasy, says the man, whose name is not being released, is a private investigator who was working on a workers’ compensation case when he was spotted.

MORE NEWS: Police: 36-Year-Old Missing, Endangered Woman Robin Bohannon Not Seen Since Walking Into The Woods

The man drove off when the woman saw him, and park security got his license plate.