You could use a timer or a time interval and scroll the camera to specific (or random) positions.
Something like this: https://www.dropbox.com/s/l94ehd65ohid3 ... .capx?dl=0
In this example you can trigger the shaking by pressing any key. You may configure some shaking attributes by setting the constants (use variables if your shaking will change along the game):
SHAKE_INTERVAL: The interval, in seconds, between two shakes.
SHAKE_AMMOUNT: Number of shakes.
SHAKE_H_STR: Maximum horizontal displacement in pixels every shake.
SHAKE_V_STR: Maximum vertical displacement in pixels every shake.
Hope this helps. Cheers!