Philippines city attacked prior to president's visit