I could be wrong, and often am. But I thought FBI was mainly domestic investigations, while CIA was more foreign.
That's what we've been led to believe, but if you check out this webpage, they deal with other overseas crimes like espionage, as well as international terrorism, etc.: