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: Commonwealth Court Upholds Shutdown Of Crack'd Egg Over Mask Mandate Violation

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

READ MORE: Coast Guard Warns Boaters To Use Caution On Allegheny During High River Flows

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: Gushing Water Main Break Floods Area Near Beck Run Rd.

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