Rare beetle under threat from plans to build 28 new homes in