It's perfectly legal if a civilian does it on his own property too, as long as it is not part of a premeditated murder.
If he had made all those extensive preparations, called 911 as soon as he saw them on his CCTV, and held them at gunpoint until the police arrived, he'd be a hero.
But his goal wasn't to catch them.