Temple police arrest sex offender after months of searching