The gunman refused to surrender, so the police had to fire warning shots.
Tips
usage
Warning by a signal or an action rather than in words. Most common in 鸣枪示警 or 开枪示警 'to fire warning shots', but a flashing light or a siren can 示警 too. To warn someone in words is 警告.