The department said he was taken into police custody and that there was no remaining threat to the parade or its participants.