Minneapolis police officer surprises court with guilty plea