you seem to have loose gums due to calculus and plaque
deposition and thats why your gums were already sore. the injury
you just inflicted was not accidental but waiting to happen as the attachment of marginal gums is not fit. see a dentist
and get the oral prophylaxis done. after scaling the gums will be tight around the teeth and no such accident will happen.
in the meanwhile you should avoid hot and spicy food, apply ZYTEE.
hope you will see a dentist soon.