Housing proposed for site near endangered bat species 'puts them at risk'