Yauhen Massalski's layup gave San Diego a 71-70 lead with 25 seconds remaining. Childs answered with an alley-oop dunk with 11.1 seconds to go, then Braun Hartfield missed a corner 3-point shot to end it.
Haws had 10 assists for his second career double-double. Childs grabbed a game-high seven rebounds. Zac Seljaas added 10 points for BYU (21-7, 10-3).
The Toreros have lost six of their last seven games.
BYU hosts Santa Clara on Thursday. San Diego plays at Saint Mary's on Saturday.
For more AP college basketball coverage: https://apnews.com/Collegebasketball and http://twitter.com/AP-Top25
Grady scores 24 to lift Davidson past Fordham 73-58
— Kellan Grady had 24 points, including seven 3-pointers, and seven rebounds as Davidson got past Fordham 73-58 on Wednesday.
Wright State looks to extend streak vs IUPUI
Wright State (9-4, 7-3) vs. IUPUI (3-4, 2-4)
What are the head-coaching succession plans at Duke, North Carolina and Syracuse?
What Duke's AD search means for Coach K's successor, plus the quest to find the nation's third-best men's basketball team.