San Diego police shoot knife-wielding homeless man