An alert security guard at a Southern California mosque is being credited with potentially preventing a tragedy after police made a stop on a suspicious car.