The teenager accused of killing two men during protests in Kenosha, Wis., in August used an assault rifle that a friend had bought for him, according to police records made public Friday.

Kyle Rittenhouse, 17, enlisted the friend’s help several months earlier because he was too young to legally buy the gun, an AR-15, himself, the records say.

Rittenhouse has been held in a juvenile facility near his home in Antioch, Ill., where he turned himself in to local police just after the shooting. On Friday, a county circuit court judge ordered him returned to Wisconsin to face multiple homicide and weapons charges.

The newly released police records contain details of Rittenhouse’s surrender as well as of statements he gave to police. He grew emotional in the lobby of the police station, saying he had “ended a man’s life,” according to the records.