Wayward officers would be harshly punished, he warned.