Energy Secretary Steven Chu has announced that he will be leaving his post once a successor is named.