A clash between knife-wielding attackers and police in China's volatile Xinjiang region left 16 people dead, including two police officers.
The officers were pursuing a terrorist suspect when they were attacked with knives, state media reported.
A spokesperson for China's Ministry of Foreign Affairs said "within the law."
Hua Chunying said assailants "used explosive devices to attack police officers" and attacked them with knives.
The incident is the latest in the string of deadly clashes between the Muslim Uighur population and the state in China's western Xinjiang region.
Sweden-based Uighur activist Dilxat Raxit said the incident was the latest example of how Chinese security forces are "increasingly opting to kill suspects at the scene rather than capturing them and putting them on trial."
More top news
An anti-aircraft gun last used in the First World War to repel a German Zeppelin raid is to fire again after 100 years.
The cult musical Rocky Horror Show returns to the London stage in September with its writer Richard O'Brien as the narrator.
George Orwell's Nineteen Eighty-Four is at the top of teachers' list of books "every student should read before leaving secondary school".