A 13-year-old student was detained by police on Monday for an assault on a Barcelona school that left one dead and four injured, the BBC reports.

According to witnesses, the unnamed minor was armed with a homemade crossbow and a machete when he began his attack on Joan Fuster secondary school, about one hour after classes began. From the L.A. Times:

[The student] walked into a classroom and opened fire on his teacher, who greeted him at the door, and on fellow students, one of whom was the teacher’s daughter, police said. A substitute teacher heard screams and ran to help. He was mortally wounded in the chest.

He had been working at the school for only a week.

Before he was subdued, the student reportedly injured two others, including a classmate who asked him to stop the attack. All four of the wounded are expected to recover.

According to The Local, the student is too young to face criminal charges under Spanish law.

“He will be assessed and be sent to a child detention unit or given psychiatric care,” a police spokesperson told the website.

[Image via AP Images]