The pitbull bit the boy on the leg and dragged him into the yard, where other dogs attacked and killed him, officials said.
The boy's mother tried to pull him away from the animals but failed.
The dogs' owner, identified as 48-year-old Maria Estela Flores Perez, was arrested and will be investigated for manslaughter, officials said.
The boy's body was taken to the coroner's office for an autopsy.
Wild dogs attacked and killed four people in January at a Mexico City nature reserve.