That doesn’t make sense to me. What were you doing when it happened. Did you allow the internet to install something to your system by entering your admin password?
Now I have seen the Safari malware that acts like ransomware, but it doesn’t actually destroy anything. It prevents you from leaving the page (even if you restart Safari), and warns you to call a number to get it removed. Reset Safari by holding SHIFT while starting it, and it won’t reopen that site.
I have no idea now. About the only links I click on are links from FR.
Did you allow the internet to install something to your system by entering your admin password?
Absolutely not.