What kind of ship?
If it's the Mk.II PBR or the East side Boat or something similar, then just place a destroy waypoint on the boat for the plane...
If it's LST the AI doesn't seem to wanna attack it, at least not with destroy WP... Just flies into it...