Shares of Snap Inc. slid in after-hours trade on Tuesday after the social-media platform forecast third-quarter sales that were below expectations.