A small amount of bright red blood with a hard stool, with no bleeding since, usually points to a minor fissure or hemorrhoid from straining, not menstrual blood as you suspected.
Next Steps
Add more fibre and water to soften your stools, and get a proctology check if the bleeding repeats.
Health Tips
Please see a doctor in person if the bleeding gets heavier, continues, or you feel dizzy or unusually pale.