A man has been left with severe burns to half his body after being set on fire in a targeted attack at a New South Wales apartment complex overnight.