Hello,
Anything can happen, in this case you must remove either the fish or the shrimp to your quaranteen tank, you do have one I hope. Then possibly take them back to the store.
The other thing you could do is to add more cover(rocks, coral, etc.) for the shrimp.