A two-year-old girl was trapped with toys inside a crane vending machine