Elon Musk is considering taking Tesla private, the electric car maker's chief executive tweeted on Tuesday.