Interrupt can be used with a person or an event. In this case the event is your completion of your homework. The first part of your sentence is fine, but I would re-word the end slightly, like this:
..., but he arrived 30 minutes early and interrupted it so I didn't have time to finish.