It looks like some type of epoxy. If you want to glue it back in, and not come out, ever, I'd use two part epoxy, or liquid nails....