The Bangladeshi cricketers were on their way to the Masjid Al Noor mosque for afternoon prayers but fled after hearing gunshots.
The players and staff then took refuge at Hagley Oval cricket ground, which is close to where gunshots were fired.
All team members were unhurt and were allowed to return to their hotel later on Friday.
Team captain Mushfiqur Rahim tweeted that they were “extremely lucky” to survive.
Saturday’s Third Test against New Zealand has been canceled with the Black Caps leading the series 2-0.
(Production: Andy Ragg)
COURTESY BANGLADESH CRICKET CLUB