Prosecutors have deferred charges against a 42-year-old man who allegedly evaded Champlin Park High School security to have sex with a 19-year-old special-needs student in the school.

The Hennepin County attorney’s office originally had expected to file charges Friday afternoon, but prosecutors said about 4 p.m. that they want more time to investigate the complex case. The suspect was released from jail Friday afternoon.

At a news conference earlier Friday, police said the student met the man through a social media app and had arranged to meet at the school Wednesday.

The man bypassed the school office, which is a separate house located on campus, entered the school and met the student in a bathroom, where they engaged in a sexual act, authorities have said. The two later returned to the same bathroom to have sex again. The suspect was on campus for about 55 minutes, according to police.

Students noticed the man acting suspiciously about noon and contacted school officials, who approached him. He tried to flee but was held by a security guard, a teacher and staff until police arrived.

Police said the man has a Washington state driver’s license and often travels around the country. There was some concern that he might try to flee the country.

The Anoka-Hennepin School District upped security measures after the breach. Visitors are now escorted through the school and the district will review its long-term security measures with the police department.