The 12ft long king cobra sparked panic after a woman heard something rustling through the ramshackle hut in Karnataka, southwest India.