I'm thankful for police officers like the OP. I had an incident a few days after hurricane Ike down here in Texas. I had just gotten home after doing 4 days straight at a command center for TDCJ. It was dark, about 2am, and I walked around my house with a flashlight checking windows to ensure none were broken. I then went inside, and luckily the electricity was on so I turned the lights on. I changed into jeans. I had my .45 nearby due to it being late, and there had been reports of looters in nearby cities. I heard a noise outside, sounded like footsteps. So, I grabbed my .45 and a flash light. I opened the backdoor, on the pretext of confronting whoever might be prowling around. I got lit up with flash lights and a commanding voice stating "DROP the GUN! DROP THE GUN! POLICE! POLICE!" So, I dropped that baby like a hot potatoe! I then put my hands up, and the officers approached. They were county deputy sheriffs. They ID'd me, and saw that I owned the house. They explained that my neighbor had reported a prowler, which likely was me walking around my house with the flash light when I had first gotten home.
I was damn thankful they had the good judgement to not shoot first. The deputies were cool, and they advised that if I needed anything just give them a call again. They could laugh about it afterwards, as could I. All of us there had our hearts skip a beat for a few minutes till things got sorted out.