Welcome to HCM,
It seems that you have got inflamed strangulated pile giving rise to this problem.
This infection might have spread to vaginal area giving you more trouble.
There is a possibility of having fissure-in-ano as well.
In this situation consult surgeon for exact diagnosis and treatment accordingly.
Meanwhile apply some antibiotic cream locally,
Take liquid paraffin
one tablespoonful at night.
Ok and bye.