That is WEIRD!
I kept fish for years and never saw anything like that!
Ive even asked a fish shop owner and he hasnt got a clue either!
Best bet is to take it out, put it in a glass or something with a couple of pebbles and a bit of live plant until you find out if its dangerous or not!