A man has been charged with a number of firearm offences after gunshots were allegedly fired at a home.