I don't know what these rebel/terrorist groups expected to happen after directly attacking the US military, but I'm pretty sure the rest of us knew almost exactly what was going to happen.
I get it: they hate the US and want them out of the region. Attacking the US brings them to the region.