German police say a 13-year-old boy has been arrested for setting fire to an asylum home in Hamburg that killed a woman from Pakistan and her two children.

Police spokesman Andreas Schoepflin said Saturday the boy, who is a member of the city's youth fire department, was identified based on witness accounts and video footage by a surveillance camera.

He admitted to the crime when confronted by police Friday night and was taken to a hospital for psychiatric evaluation. Schoepflin said the boy didn't have any anti-foreigner motives.

Besides the three deaths, 27 residents were injured in the fire at the asylum home on Wednesday.