Outdoor security camera with varifocal lens