Death toll in Pakistan mosque collapse rises to 24: officials