ISLAMABAD, Pakistan — The Pakistani military, angered by the inept handling of the country’s devastating floods and alarmed by a collapse of the economy, is pushing for a shake-up of the elected government, and in the longer term, even the removal of President Asif Ali Zardari and his top lieutenants.