A Leeds man has been charged with attempted murder after shots were fired in Bradford.