Amazon's quarterly earnings and outlook fell short of analysts' expectations Tuesday. The stock initially fell then popped higher in extended-hours trading.