When an offense is committed partly in one county and partly in another, or where the acts, effects, means, or agency occur in whole or in part in different counties, the jurisdiction shall be in either county in which said offense was commenced, prosecuted, or consummated, where prosecution shall be first begun.