A man in his 20s was shot dead during a home invasion south of Sydney.