Judge upholds suspension of boy in pastry gun incident