Can you get the rock out it's attached to? Clams send out these threads called byssus threads that are like little grapling hooks that they use to attach themselves to rocks. You can cut the theads, but be very careful not to cut the bottom of the clam where the threads come out. Get a sharp razor blade, knife, ect., and cut the threads as close to the rock (in other words, as far from the clam) as possible. DON'T pull on the clam to get it to come off. I would not do this opperation without being able to see what you are doing as you may not have a lot of room between the clam and the thread attachment point on the rock. Hopefully, you won't have to move much rock.
Good luck and let us know how it goes.
BTW, I set my clams in scallop shells, which they attach to. Then I can move them when I need/want to.