No, not the city that was ported, a different city was under attack. Either the attacker ported randomly and was really lucky, or they were already that close to the city.