Scalar waves on a naked-singularity background