The “well-planned” attack hit a quarter of the city-state’s population, officials said.