A 49-year-old Somerdale man is accused of arranging to have sex with a 13-year-old girl he met through a chat app.

In reality, the person that Richard J. Kostrub was texting with for a month or so was a federal agent, according to Burlington County Prosecutor Scott Coffina.

His online activities were discovered by law enforcement officials earlier this month.

During his chats, Kostrub sent a nude photo of a young girl to the person he believed he would be meeting, authorities said. He also said he wanted to take her virginity.

On Tuesday, Kostrub traveled from his Camden County home to a Walmart on Route 70 in Evesham Township, believing he would meet the young teen, Coffina said.

Instead, he was met by investigators from the Burlington County Prosecutor’s Office High-Tech Crimes Unit, Evesham Township police and the Cherry Hill office of U.S. Homeland Security Investigations, who immediately took him into custody.

Kostrub was charged with luring, attempted sexual assault, possession of child sexual abuse material with intent to distribute and distribution of child sexual abuse material — all second-degree counts.

He also has been charged with possession of third-degree child sexual abuse material and fourth-degree attempted criminal sexual contact.

As of Wednesday, he was being held at Burlington County Jail, pending a detention hearing.

Erin Vogt is a reporter and anchor for New Jersey 101.5. You can reach her at erin.vogt@townsquaremedia.com

Click here to contact an editor about feedback or a correction for this story.

Perv doctors, masseurs in NJ: Lost licenses for sexual misconduct

Over a year's span, state occupational and professional boards have taken the licenses of 20 professionals accused or convicted of sexual misconduct. For some, it's permanent.

2022 Seaside Heights Polar Bear Plunge photos

More than 6,000 people took the plunge into the Atlantic Ocean on Feb. 26, 2022 to raise more than $2 million for the Special Olympics New Jersey.

New Jersey's new legislative districts for the 2020s

Boundaries for the 40 legislative districts for the Senate and Assembly elections of 2023 through 2029, and perhaps 2031, were approved in a bipartisan vote of the Apportionment Commission on Feb. 18, 2022. The map continues to favor Democrats, though Republicans say it gives them a chance to win the majority.

Questions to ask to see if someone’s REALLY from New Jersey

50 Most Popular Chain Restaurants in America

YouGov investigated the most popular dining brands in the country, and Stacker compiled the list to give readers context on the findings. Read on to look through America's vast and divergent variety of restaurants—maybe you'll even find a favorite or two.