This logical fallacy is known as Post Hoc fallacy. The argument here is "This happened immediately after A happened, and therefore A must have caused it".
In criminal law, this known as "Last seen togather" theory. A and B were last seen going towards a garden. Then dead body of B was found. So A must have murdered B.
This is how this theory works. If A fails to satisfactory prove what happened, he is convicted.
Logically, this is a fallacious argument based on Post Hoc fallacy.
Haresh Raichura 7/12/16