The plane was about 45 minutes from landing in Boston when the crew received an alarm that a side door on the aircraft was disarmed, prosecutors said.