An area of the town centre was cordoned off.