thanks for query
it seems that due to hard hit your hamstring
muscles might have injured and it is likely that there hemotoma in the muscles.
it may give infection due to hemotoma.
go for anti biotic and anti inflammatory medicine course.
give rest to the hamstring muscles.
ok & bye