Shares of Amazon jumped more than 5% in after-hours trading Thursday after the e-commerce giant reported third-quarter earnings that beat Wall Street expectations.