Teen avoids prison in deal, apologizes to victims