Police say a 25-year-old man was shot by officers after confronting them during a break-in at a Grafton property in northern NSW.