A Michigan teen has been released from custody after indicating during a school assignment that “shooting” made him happy, authorities said.

The unidentified 14-year-old was detained Friday after staffers at the Pontiac Academy of Excellence contacted the Oakland County Sheriff’s Office, Lt. Steve Troy said.

The teen allegedly included the word “shooting” when asked by his teacher to write out a list of things that made him happy, leading the instructor to take it as a threat after a second list included several types of weapons and how many rounds of ammunition each firearm would hold, Troy said.

But the student later told deputies that he was only joking and no list containing the names of students or teachers he wanted to kill was found, contrary to earlier news reports.

“There was never a list with names,” Troy said Monday.

The boy’s father was then summoned to the school before the pair went to a police station. The teen, who was taken to a juvenile detention in Oakland County, has since been released from custody pending further investigation, Troy said.

Dr. Desmon Daniel, the school’s CEO, stressed that the student was also not found in possession of a weapon.

Authorities were notified after the teen wrote “shooting” on a list of things that made him happy or angry. But the listing did not specify that he enjoyed killing people, Daniel said.

“The staff, administrators and security professionals did an excellent job of following protocol and there was no further incident,” Daniel said, adding that school officials planned to release additional information later Monday.