I wish you the best with finding a new house. I do think its likely that your neighbor heard that you were awake via hearing noise from the instalation you were completing with the security system.
That by no means makes it ok to knock on someones door at 3 A.M. for a smoke but those who are intoxicated don't exactlly think rationally and its very likely the person doing the knocking was intoxicated to some extent.