Hi thanks for the query.
From the information you had given your kid must had a soft tissue injury
on the thigh, which resulted in bruise
. Regarding the knot under the bruise it could be some minor tear in the muscle which could have fibrosed or condensed haematoma
(hardening of blood). I suggest you to consult local orthopedician to rule any other issue.