Police say they spotted the 37-year-old man about 11:30 a.m., at which point he ran away.
Officers and a police dog named Boomer tracked the suspect to a home occupied by a 25-year-old university student.
They allege the man had forced his way into the home and was hiding in the attic, where he was discovered by Boomer.
Police say the suspect resisted arrest and received several bites, which were tended to by paramedics at the scene.
The man was held in custody overnight and is scheduled to appear in Nanaimo Provincial Court on charges including obstruction, resisting arrest and break and enter with intent.