Police say a man took a 14-year-old girl from her home at gunpoint early Tuesday and raped her at an eastern Pennsylvania motel, where he later opened fire on police before they arrested him.

Police allege that Derek Bengtsson kidnapped the girl around 1:20 a.m. and took her to the Budget Host Inn in Stroudsburg, where he shackled and raped her. Authorities said Bengtsson eventually fell asleep and the victim managed to escape and call police.

State police said the tall, burly, bearded suspect fired at least four shots at officers from the Stroud Area Regional Police Department as they broke down the door to his motel room, and that one officer became pinned down in a bathroom. No one was hit, and Bengtsson surrendered after negotiating with officers, police said in an affidavit.

"The fact that he fired, it was pretty unbelievable that no one was hurt," said state police Trooper Robert Sebastianelli.

Bengtsson, 27, of East Stroudsburg, was charged with attempted homicide, rape, kidnapping and other counts. He was being held in lieu of $500,000 bail, and it was unclear if he had an attorney.

Police said the victim knew her attacker but declined to provide more detail about their relationship.

The girl told police that Bengtsson had gone into her bedroom, showed her a handgun and said, "If you don't come with me, bad things are going to happen." She said he threatened to kill everyone in the house if she didn't follow his instructions, according to the affidavit.

Bengtsson drove her in her mother's car to the motel, where he took her into a room, locked the door behind them and barricaded it with chairs, police said. Then he gave her two options: She could kill him or have sex with him, police said. She refused and he raped her, documents said.

Bengtsson also showed her a note that she later took with her and gave to police.

The note said, in part: "Yes, I took her. And as long as you play by my rules, She will come back unharmed and breathing. However, Failure to abide by the rules will result in a bullet put in her head. My Rules: Do NOTHING! Sit there in silence and SUFFER."

It wasn't clear to whom the note was addressed.

A MySpace page evidently belonging to Bengtsson lists his interests as "Poker, serial murder, rape, torture, etc." Among his heroes, according to the site: "child molesters" and serial killer Ted Bundy. Sebastianelli said police were examining the page.