Man charged with firing a gun outside his house