Sweden beat Bosnia and Herzegovina 3-2 in the UEFA Nations League, with V. Gyokeres scoring a penalty and a second to secure the win.