Dr. Mohammad Harun Rashid, of Old Bridge, connected with the agent, who he believed was a 14-year-old girl, on a dating app designed for casual sexual encounters.