At least four people were killed when an Iranian missile hit a residential building, Israeli officials say.