Mahmood snared Brandon King, Evin Lewis and Shimron Hetmyer to leave the Windies on 18 for three.