Police pursuit ends in gunfire after armed robbery