Terry Chea, Associated Press
Neighbors look at the growing memorial of flowers, stuffed animals and notes left in memory of Madyson Middleton in Santa Cruz, Calif., Wednesday, July 29, 2015. The close-knit community of artists in Northern California are grieving the death of the 8-year-old girl whose body was found in a trash bin at their housing complex and expressed shock that one of their own, a teenage boy, has been arrested in her death.

SANTA CRUZ, Calif. — Prosecutors charged a 15-year-old boy with murder, kidnapping and sexual assault Wednesday in the death of an 8-year-old girl in an artists complex in a California beach town.

Police say Adrian Jerry Gonzalez lured Madyson Middleton from a courtyard where she had been riding her scooter over the weekend into his family's apartment where he attacked and killed her.

Gonzalez remains in custody at the Santa Cruz County juvenile detention center, where he has been held since being arrested Monday evening near a recycling bin where the girl's body had been dumped.

"Unfortunately, the search for Maddy ended in the worst way possible," Santa Cruz District Attorney Jeffrey Rosell said.

He said Gonzalez will be charged as an adult and added that in his two decades in Santa Cruz, he's never seen a 15-year-old charged with murder.

Prosecutors said they considered the nature of the crime, how the crimes were committed, the age of the defendant and prior criminal record when making their charging decision.

Because of his age, authorities have declined to say whether Gonzalez had a record.

Authorities also say they don't have a clear motive in the killing. "People do things for lots of reasons, sometimes we understand it, sometimes we don't," Rosell said.

A call to the Santa Cruz County Office of the Public Defender for comment on the case wasn't immediately returned. Gonzalez could be assigned a public defender at an upcoming court appearance.

Neighbors at the Tannery Arts Center where both the suspect and Madyson lived said they were stunned by the death. The center is a public-private nonprofit that includes 100 affordable loft apartments for artists and their families. About 250 people live in the complex, including about 50 children.

A memorial has been set up in Madyson's honor, overflowing with dozens of bouquets, stuffed animals, balloons, candles and notes.

On Wednesday, a group of girls about Madyson's age were crying at the memorial. One girl was walking Madyson's dog, Lucy.

Associated Press Reporters Kristin J. Bender and Julia Horowitz reported from San Francisco.