Standoff in Islamabad comes to an end, gunman captured alive