Diatomic gas diffusing in a background medium: kinetic approach and reaction-diffusion equations