Injection of a bubble into the inner magnetosphere