I sure wish you would have said which government you are referring to. Here in the USA a prior government would have been the rule from Britain over 200 years ago. As for Iranian government training ISIS and paying them - I think your question suggestion is spot on. Their prior government just goes back to the '70's.
An imagination may take you to a place where terrorism is a ruse. But that takes to much away from the reality of the zealots. Really thinking that Paris attacks and San Bernardino attacks were government sponsored in a clandestine manner is some strange thinking.