A Massachusetts prosecutor says a 6-year-old girl was kidnapped by a would-be rapist but managed to escape from his apartment despite being in leg shackles.

Plymouth District Attorney Timothy Cruz says the girl was found Saturday afternoon as police searched the apartment complex in Hanover, about 20 miles southeast of Boston, where she and the suspect live. Her mother reported her missing at about 1:30 p.m.

Cruz says the girl pointed officers to an apartment where she was taken. They arrested 26-year-old Justin Shine after a struggle.

Shine is to be arraigned Monday on charges of kidnapping, attempted rape, assault and resisting arrest. It's unclear whether he has an attorney.

The girl was also taken to a hospital, but authorities declined to comment on her injuries.

Click here for more on this story from MyFOXBoston.