Tennessee's prisons chief has resigned after the failed execution of death row prisoner Christa Pike.