When the commission of a crime commenced outside the state is consummated inside the state, the defendant is liable to punishment in this state even though out of the state at the time of the commission of the crime charged, if the defendant consummated the crime through the intervention of an innocent or guilty agent, or by other means proceeding directly from the defendant.