Assuming you dropped from 3-4k or so.
That is pretty low. I usually try to release at no less than 6k AGL, which means I can straighten out at 4-5k. Hitting hangars is still very easy from that alt. If you manage to level out at 5+k AGL, you can escape the acks by zooming up to 7k AGL. Otherwise, proceed as suggested in a shallow dive to keep speed and make small jinks. Speed gives you 2 things: 1. you get out of range faster. 2. acks need to lead more, so every small change of direction throws the acks farther away from correct aim.
As for direction of approach and escape, there are several considerations. First and foremost, I consider it a good practice to make your attack run in the general direction you want to egress to - this is more important in the presence of enemy fighters. You will build up a lot of speed in the dive and cover a lot of distance fast during the pullout and initial acks get-away, so it better be lots of distance in the right direction, instead of into deeper poop.
With respect to acks defense, it depends also on you attack profile. Lets assume the target is on one edge of the field (say West side). If you come from high, well above 7K, acks cannot shoot you till you drop below. Therefore it is perfectly safe to from from East to West over the base and then dive to attack, leaving all the acks on the east side behind you and on the edge of their range. If you come lower than 7K, it would be better to approach from the direction of least acks (from West in this example) and break away ~120-150 degrees (north-west, or sout-west) while in a shallower dive.
Fast bombers with level bomb sight can do a kind of "stand off" attak if they are lower than 7K AGL - come as fast as you can from the direction of least acks (from West in this case), release and break like a fighter 120-150 degrees to either side (no formations obviously). If you come fast enough and over 5K AGL you will release from such a distance that you will barely enter acks range, and exit it very fast. Mosquito XVI is the master of this attack profile and Tu-2 is pretty good also. I most often use this with the TBM - it does not have formations anyway, climbs like #### when loaded, and carrier operations are often at short ranges.