A sex offender was arrested by Portsmouth police after windows were smashed at a property.