Hi,welcome to ehealth forum and I am glad to help you.
Your concern is regarding the pea-sized lump in the left underarm.
Any lump under the armpit (axilla) is concerning. It could be something as little as a cyst or inflamed hair follicle, but suspicious lymph nodes also present themselves in this area.
Skin abnormalities, or "bumps" may arise from time to time, particulary in an area where there could have been an irritation. There is a long list of possible causes, and a quite likely cause is irritation or inflammation from the shaving episode that you describe above. In many cases, these things will resolve on their own over a week or so. However, this cannot be evaluated online, if you are concerned, you should see your doctor (your primary care doctor would be a good first start) for evaluation. This would be especially important if the lump hasn't disappeared within two weeks or if it enlarges and becomes increasingly sore. Irrespective of the lump going down, careful breast self examination(BSE) is recommended and many women should undergo mammography as a screening tool. You should discuss this with your own doctor as you have a family history of breast cancer as well where it becomes all the more important.
Take care.
Note:This answer is not intended as and does not substitute for medical advice - the information presented is for patient education only. Please see your personal physician for further evaluation of your individual case.