Man charged with trying to bring gun into Maryland casino