It sounds like an overuse injury (basically what CCrew and lil brown bat said). A sharp pain however can be an indicator of something you need to have checked out but this doesn't sound like the case. It sounds more like a muscle spasm brought about by overuse. The old adage Rest Ice Compression and Elevation is usually the best practice.