A Scottish medic who volunteered to serve in Ukraine has been killed while fighting on the frontline against Russian forces.