Question: There is a woman suffering from epilepsy, and (at the same time) possessed by a female jinn. Whenever the woman is beaten (by the raaqee), the jinn does not respond by coming out of her body. So is it permissible in this case to burn her with fire so that the jinn will leave this woman?
Response: It is absolutely impermissible to burn her with fire, since only Allaah has the authority to punish with fire.
And with Allaah lies all success and may Allaah send prayers and salutations upon our Prophet (sal-Allaahu `alayhe wa sallam) and his family and his companions.
The Permanent Committee for Islaamic Research and Fataawa
al-Fataawa adh-Dhahabiyyah fir-Ruqaa ash-Shar’iyyah, Page 72.fatwaonline.com