Dear Divya, it is very sad that you got fever after doing agnisara kriya.
Fever is basically an immune response. An elevated body temperature triggers cellular mechanisms that ensure the immune system takes appropriate action against the offending virus or bacteria.
Agnisara kriya followed by fever is not correlated until any intrinsic factor like diarrhoea, food poisoning or any surgery or peptic ulcer having been aggravated. Practice beyond capacity can cause low grade fever that relates to overexertion and typically returns to normal after some time with rest and hydration. So, please check with your physician to come to the causative factors behind your fever.
Links:
How to do Agnisara Kriya?
Preecautions of Agnisara Kriya.