Ultraviolet emission lines and optical photometry of the flare star AT Microscopii