I'm not a cobra keeper, but it is quite likely a pain response. Either way it is grounds for an oral examination by someone who knows what they are doing, be it you or your hot vet.