Cammy Bell saves three penalty kicks as Dundee United beat Dunfermline Athletic despite being reduced to 10 men.