Police have apprehended Ahmad Khan Rahami, who was a suspect in connection with explosions in New Jersey and New York City.