When you see a security camera watch for its red line of sight. Avoid this and get right underneath the camera. Alterntively shoot it with a jolt of electricity which will temp. disable it.
Press X to hack. A difficulty meter will appear on screen. You will then need to solve the puzzle. If the meter is green this will be a piece of cake.
Buyout and Autohack also work