I believed it was CIA and NSA that operated beyond u.s. borders. But of course, patterns that fbi finds could lead to other countries as well.
although the FBI is a domestic enforcement agency, Congress specifically gave it the ability to hack any computer anywhere in the world.
Despite whatever concepts you have ever heard about any agency's mission or limitations, Congress has the ability to delegate tasks to whatever agency it thinks have resources, and then those laws stay on the books.