Bangladesh beat Pakistan in a Test at home for the first time. Captain Najmul Hossain Shanto scored 113 to lead the hosts to a famous win.