Electron injection by a nanowire in the bubble regime