SAN MARCOS, Texas — A man has been arrested after Texas State University Police said he broke into dorm rooms, stole items and watched women sleep.

"He was taking their undergarments and pictures of them and their belongings and stuff," one student who lives in the dorm told KVUE.

According to Texas State University, 29-year-old Jose Chavez was arrested on Friday after he was found in San Jacinto Hall, entering several unlocked rooms where women were sleeping.

Police said they captured Chavez as he was leaving the dorm building Friday morning.

They are still investigating how Chavez entered the building in the first place.

"Often times people will approach our students and say 'Oh I left my ID, can you let me in?' and our students will let them in," said Texas State University Police Chief Laurie Clous. "Sometimes they'll follow, a student will swipe, they'll open the door wait and then grab the door before it closes and comes in."

According to police, Chavez took items from several rooms which were later recovered.

RELATED:

Bun B, wife shaken up after shootout with robber at their Houston home

Teen charged after attempted burglary at Lamborghini dealership on 420

Kendra Scott store burglar arrested

San Marcos police were alerted by UPD's arrest and let detectives know the suspect matched the description for other recent burglaries.

Police said that Chavez confessed to a burglary that occurred at Dakota Ranch Apartments where a victim said she woke up to an unknown man in her bedroom, on her bed and grabbing her breast and another burglary at The Edge Apartments both on April 21.

Chavez has been charged with burglary of a habitation with intent to commit a sexual offense, burglary of a habitation a first-degree felony and three counts of burglary of habitation a second-degree felony. Online records indicate the suspect was also charged with sexual assault and assault impeding breath from an incident in October 2011 in Hays County.

Chavez is in the Hays County jail on a $150,000 bond.

PEOPLE ARE ALSO READING:

Volunteers reportedly find hundreds of dead animals in Galveston

Marble Falls police officer dies in motorcycle crash

Police: Little girl kept herself, baby brother alive after parents’ murder-suicide