IMF reaches $1.3 billion loan deal with Pakistan