Gunmen opened fire on a bus carrying Shiite Muslims in the southwestern city of Quetta on Thursday, killing eight of them in the latest sectarian violence just days ahead of the holy month of Muharram, police said.