A bright megaelectronvolt emission line in $\gamma$-ray burst GRB 221009A