A wayward delivery from Mohammad Hafeez was smashed for four as Bangladesh started their run chase against Pakistan in the ICC World Cup.