I have no firsthand knowledge for this and this is pure speculation, but I suspect that this was far more likely to be an automated goalkeeper system misidentifying and or firing in a line at a valid target through the path of the friendly jet than anything else.
That sounds plausible. To add more speculation though, it seems nuts that an automated system can use IFF to make sure the firing line is clear of friendlies