A dad has been flown to hospital after being shot in the back during an altercation outside a home while a young girl slept inside.