My dog did exact same thing but he took a couple of days to move around. The problem is actually in the knee cap. It requires surgery to fix. Cause is over exertion or maybe, as in my case an old injury involving him jumping out of the back of my truck at 60km when he was a year old.