CLARK, Philippines - The Philippines declared Monday that a five-month military operation against Islamic State-inspired militants who had seized parts of the southern city of Marawi has ended, after the intense fighting claimed more than 1,000 lives.