It looks like it flew to PTY, held at 8000ft for about 15-20 minutes and then diverted to PTY.
That looks like being unable to land at the destination, probably due to weather reasons. Although there doesn't seem to be any weather event at the time...