A number of residents had to leave their homes while a suspicious device was examined.