How can i do it ?
Thats pretty easy.
Just add a random amount of pixels to the position of your camera. If you have a camera that follows your player add an event that starts a timer when the shaking should begin, than add a small amount of pixels to the camera position. After the shake is over just centre the camera on the player again without the offset.