Wal-Mart reported earnings before the bell Thursday that beat Street estimates, but revenue fell short.