This could happen when the network is slow and the request to server is lost. Don't worry, the item will not be lost.
When it happens, simply force-close your game and launch it again, the items should either be refunded to you or have taken effects on your account.