Utah staves off No. 25 BYU 24-21