Painful, warm swelling in the calf muscle could be an inflammation in muscle / collection of blood or pus inside muscle.
Association of the swelling with blood in stool
is an emergency, it may be due to some bleeding disorder
. However, a detailed history would help me more to suggest the probable cause.
It would be wise to make an immediate visit with pediatrician
and get your child examined.