An intoxicated man with no affiliation to the University of Maryland was apprehended Wednesday morning after walking into three occupied rooms in Hagerstown Hall, according to a release from University Police.

Police responded to the dorm at about 1:30 a.m. after a student reported the suspect — Josue Daniel Sigaran, 23, of Rockville — had been trying to enter multiple rooms. After speaking with the student and reviewing video footage the student took, police took Sigaran into custody.

[Read more: UMD Police investigate report of sex offense, burglary in Elkton Hall]

While in Hagerstown Hall, police wrote that Sigaran followed a woman down the hallway, grabbed her arm and tried to talk to her. A bystander noticed the interaction and intervened.

Sigaran later entered three occupied rooms. In the first, police said he stole property from the resident’s desk and left after the resident yelled at him to get out.

Police said he then entered another room and prevented the resident from leaving by removing her hand from the door handle. The resident was able to open the door and get Sigaran out.

[Read more: UMD Police issue arrest warrant for suspect in University Book Center burglaries]

In the last room that police wrote Sigaran entered, two residents got him to leave. Sigaran then left the area when he saw a resident was on the phone, police wrote.

Sigaran has been charged with burglary, trespassing and second degree assault, police wrote.

“Due to the quick reporting of suspicious behavior by our student resident, an apprehension was made in this case,” police wrote. “Thank you to our student resident who said something when they saw something suspicious.”