Police said the hostage-taker, a convicted sex offender, barricaded himself and the hostages inside the building during the 15-hour standoff.