There is a video on youtube talking about how the U.S. and other countries perform things called Red-flag operations (intentional terrorist attacks) which gives the country getting attack justified reasons to do things.
IDK if its true but if you see the video it gives some examples of how it was done in the past