Afghan teenager detained in rape, slaying of German student