School officials knew a teen who was volunteering for a summer program had threatened to sexually assault a child, documents said.