It was a crushed soda can laying in the middle of the street. I don't consider kicking something like a can, rock, etc. in your way while walking "idiotic and immature behavior."

I think you handled it fine, the street is not his property, you weren't kicking the can in a punk ass nature, maybe the homeowner was just having a shitty day, or there have been suspicious activities in the hood. Either way, make sure you know who you're barking at and why (homeowner).