Man injured by shotgun after allegedly attempting to enter a home