Production does not happen until the beginning of the next turn for the AI. Keep hitting the coastal city with ships until the flag goes down, which means there are no more defending units in the city. Then try dropping a unit directly from a ship into the city.