more than likely you did not rip the foot off. it was probably its anchoring byssal threads. it will grow new ones and anchor itself again.
Sorry... got my clam parts mixed up. It was the anchor.
Funny thing is, I was unhappy with the location anyways. The clam moved his position and I couldn't view it. I didn't want to move it since it was anchored already.