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
Leaked documents have revealed the first known picture of Mohammed Emwazi - named as IS militant Jihadi John - as a student in London.
With March just around the corner it's looking like this winter will be the sunniest on record (data goes back to 1929).
A campaign demanding an end to the taxation of sanitary items will be presented to George Osborne after reaching almost 200,000 signatures.