Welcome!
Did you find more when you changed the soil?
Is it possible to take a better pic?
OH, it is probably a YUCCA MOTH Larvae (can't see, but just may be)
I wouldn't water much for a while.
Were your leaves turning yellow?
Do you have it in full sun and light?
No other pest problems?
Are you using fertilizer?
If there is a next time... Here is what I have done and would do again.
Did you fill a container with warm water and slowly set the pot in it slowly and watch for the bubbles, once the bubbles are gone, submerge the whole pot just above the top of the rim of it. Let it sit for a minute or so then slowly take it out of the water. Let it dran real well,
((recommend...if it isn't draining real well your soil is too heavy need to loosen it up...amend ) if it doesn't drain well make a path down to the holes so the water can drain.
Now, if you still have the problem you can water with peroxide or bleach water.
Peroxide 3% should be about a cap per 2cups water
Bleach should be a cap per 4cups water.(that is if it is the cheap bleach "Not " Clorox) Clorox at least 1/2 gallon water to a small cap of bleach.
Hope you solved your problem and Congratulation on your African Violet!
Do you know how to make baby AVs?
Kale