The now 17-year-old boy pleaded guilty to engaging in a sexual act with a child