Localization of an atom by homodyne measurement