in a two stage root canal first the dead part is removed and cleaned leaving the live nerve to be removed later. this can be painful until completed. even when done in one appointment many times there is a calming down period. advil will help with pain and swelling. if you want a dentists opinion post in the ask a doctor forum instead of the community section.
Something isn't right with this, and it sounds to me like either all the nerve was not removed, or he damaged something deeper than the root. Insist that the endodontist see you right away to evaluate your pain.