United Parcel Service Inc. and FedEx Corp. shares tumbled after an analyst warned that Amazon.com Inc. is offering inexpensive and increasingly fast delivery services to third-party customers, underscoring the risk posed by the e-commerce giant to traditional shipping firms.