LOS ANGELES, Oct. 31 — A 10-year-old boy admitted that he accidentally started one of the largest of last week’s Southern California wildfires while playing with matches, enforcement officials say.

The blaze, the Buckweed fire, started in the early afternoon of Oct. 21, in Agua Dulce, a rural community in the northern part of Los Angeles County. Fanned by high winds and hot, dry weather, it spread quickly, driving 15,000 people from their homes, destroying 21 houses and 22 other buildings, injuring three people and blackening more than 38,000 acres.

Investigators immediately began tracing the cause of the fire, and on Oct. 22 arson investigators from the Los Angeles County Sheriff’s Department talked with the suspect, whose name has not been released, a department spokesman, Steve Whitmore, said Wednesday. “It became known to them that they needed to speak with this young boy,” Mr. Whitmore said. “He acknowledged that he was playing with matches and accidentally, his words, set the fire.”

Mr. Whitmore would not discuss the case further before evidence was presented to the county district attorney’s office.