it sounds like you have a haematoma
which is a small collection of blood that forms under the skin following an injury
like this. the knee and shin are particularly prone to this. the lump often persists for a number of weeks although the associated pain should settle more quickly. there is no specific management other than antinflammatory medication for the pain and rest.