Narrative:

On climb out from takeoff on the terpz 6 RNAV departure; tower issued an immediate right turn away from traffic that was approaching to our front. Simultaneously we received a RA to climb. I executed a turn and climb; complying with the RA as the captain had visual with the small aircraft. The captain continued to monitor the other aircraft while keeping me informed as to its proximity. As the traffic continued to get closer I aggressively banked the aircraft in the attempt to avoid a midair collision. Between the aggressive bank and climb; we avoided impact. After the threat ended we proceeded to clean the aircraft up and climb out away from bwi tower admitted that a breakdown had occurred between the tower controller and departure.

Google
 

Original NASA ASRS Text

Title: Air carrier First Officer reported a NMAC after takeoff at BWI.

Narrative: On climb out from takeoff on the TERPZ 6 RNAV Departure; Tower issued an immediate right turn away from traffic that was approaching to our front. Simultaneously we received a RA to climb. I executed a turn and climb; complying with the RA as the Captain had visual with the small aircraft. The Captain continued to monitor the other aircraft while keeping me informed as to its proximity. As the traffic continued to get closer I aggressively banked the aircraft in the attempt to avoid a midair collision. Between the aggressive bank and climb; we avoided impact. After the threat ended we proceeded to clean the aircraft up and climb out away from BWI Tower admitted that a breakdown had occurred between the Tower Controller and Departure.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.