Man pulls knife on crowd, police