Man unhurt in attempted armed home invasion