Man accused of leaving child alone with guns