An Iranian court has sentenced a teenage rape victim to death by hanging after she weepingly confessed that she had unintentionally killed a man who had tried to rape both her and her niece.