Man shot in the head during home invasion