The main thing you should do is to separate the geckos so it doesn't happen again. The injured gecko's tail will heal and regenerate though it won't look as nice as the original. If the gecko is on a particle substrate it would be good to put it on something without little pieces until the tail starts to heal (if the gecko is on sand that's not a good idea in any case).