Teen admits to arson attack on machine