An algorithm designed to uncover asteroids roaming near Earth has revealed its first "potentially hazardous" asteroid.