Long Beach police arrested a man on suspicion of breaking in through a woman’s first-floor apartment window and attempting to rape her early Thursday morning.

A woman posted on Reddit about what appears to be the same incident. She warned others about what happened.

“He had came in through the kitchen window and left through the window too. Thanks to the police they were able to catch him quickly,” she wrote on the forum.

She said she was asleep when the man came in. While he had her pinned to the ground and tried to choke her, she was able to call 911 with the function on her iPhone that calls police if the power button is pressed five times, she wrote.

Police got to her home, near East 12th Street and Long Beach Boulevard, at about 5:15 a.m., LBPD spokeswoman Jennifer De Prez said.

“The preliminary investigation revealed an adult male suspect entered the residence and subsequently indecently exposed himself to the victim,” De Prez said. “As the victim reached for her phone, the suspect physically attempted to stop her.”

The woman did not know the suspect. He was found a short distance away, where police arrested him, De Prez said.

Police identified him as Abraham Monterola, a 25-year-old Long Beach resident. He was booked into Long Beach Jail on suspicion of residential burglary, assault to commit rape and indecent exposure. He is being held in lieu of $1 million bail.

Detectives are still investigating, but they believe it was an isolated incident, according to De Prez.