This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

ROOSEVELT, N.Y. — A Long Island high school employee has been arrested after allegedly recording a video of a teenager using the bathroom.

According to Nassau County police, Daniel Williams, 24, of North Babylon was employed as a security guard at Roosevelt High School on Wagner Avenue.

Williams allegedly entered the boys bathroom and videotaped a 16-year-old boy using the facilities Tuesday afternoon. He is accused of then uploading the video to Snapchat.

Police arrested Williams Wednesday afternoon while he was on the job before the video could be erased.

When PIX11 News approached the 24-year-old security guard’s home in West Babylon, someone in a car sped off.

But Williams’ shocked grandmother spoke to PIX11 News through the front door.

“Please go away,” she said.

The way the Snapchat app works: you can send a private video message, or “snap” to someone, who can only view it twice before it disappears for good.

If detectives had not gotten to Williams’ phone when they did, they may never have seen proof of the inappropriate message on his phone.

He is being charged with unlawful surveillance and endangering the welfare of a child.

Williams was released on a Nassau County Desk Appearance Ticket returnable to the First District Court in Hempstead on April 11.