I wrote an effect to shake the camera on explosion or any other high impact. I found a nice article about that here, this article does nicely explain the road you will have to go.
Nevertheless my own implementation is much simpler and straight forward and it gives quite a badass feeling on explosions.
This is the main part of that effect
While explosion a explosion data is available with the position and the amplitude of that explosion. The update loop basically iterates over all explosions present at that time. The stream does simply check if a explosion is in range and adds up all explosion amplitudes.
The main part of that function is then
It simply does calculate a random float between 0 and 1 and multplies it with total amplitude of all explosions. To avoid that the amplitude will be to high I crop it at size 2 (this heavily will depend on your object sizings you have).
As soon a explosion is removed the camera is reset to its origin (set the offset for x, z to zero). Could actually be done before every update as well, depends a bit on your implementation.