Man who killed teen reaches deal with prosecutors