BATON ROUGE, LA - JULY 17:  Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police.  (Photo by Sean Gardner/Getty Images)
PHOTO: Sean Gardner/Getty Images
BATON ROUGE, LA - JULY 17: Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police. (Photo by Sean Gardner/Getty Images)
Now playing
01:09
Baton Rouge shooter was a former Marine
PHOTO: EBRDA Videos
Now playing
01:24
New video from Baton Rouge police ambush
baton rouge shooting timeline nick valencia dnt_00003328.jpg
baton rouge shooting timeline nick valencia dnt_00003328.jpg
Now playing
01:38
How the Baton Rouge shooting went down
BATON ROUGE, LA - JULY 17:  East Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police.  (Photo by Sean Gardner/Getty Images)
PHOTO: Sean Gardner/Getty Images North America/Getty Images
BATON ROUGE, LA - JULY 17: East Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police. (Photo by Sean Gardner/Getty Images)
Now playing
00:55
Source: Baton Rouge shooter identified
Montrell Jackson slain Baton Rouge officer
PHOTO: Facebook
Montrell Jackson slain Baton Rouge officer
Now playing
01:42
Slain Baton Rouge officer had written emotional post
Governor Louisiana Baton Rouge ambush police killed presser_00004906.jpg
PHOTO: WAFB
Governor Louisiana Baton Rouge ambush police killed presser_00004906.jpg
Now playing
01:20
Governor: The hatred just has to stop
Police gave the name of the man who shot 6 police officers in Baton Rouge on July 17 as Gavin Long. Online, he used the name "Cosmo Setepenra," and posted on a YouTube channel of that name.
PHOTO: YouTube/Cosmo Setepenra
Police gave the name of the man who shot 6 police officers in Baton Rouge on July 17 as Gavin Long. Online, he used the name "Cosmo Setepenra," and posted on a YouTube channel of that name.
Now playing
01:14
Baton Rouge gunman posted this video on social media
PHOTO: Jada Gabriel
Now playing
01:08
New video of gunfire exchange in Baton Rouge
baton rouge police shooting witness bpr_00000000.jpg
PHOTO: WAFB
baton rouge police shooting witness bpr_00000000.jpg
Now playing
02:10
Witness describes Baton Rouge police shootout scene
Superintendent no active shooter Baton Rouge_00002421.jpg
PHOTO: WAFB
Superintendent no active shooter Baton Rouge_00002421.jpg
Now playing
02:26
Police: No active shooter situation in Baton Rouge
Obama Baton Rouge shooting_00043225.jpg
Obama Baton Rouge shooting_00043225.jpg
Now playing
05:00
Obama speaks out on Baton Rouge police shooting
baton rouge pastor mark burns ebof_00001819.jpg
baton rouge pastor mark burns ebof_00001819.jpg
Now playing
01:20
Pastor Mark Burns calls Baton Rouge shooting a tragedy
Authorities talk to the driver of a car near an area where several officers were shot while on duty less than a mile from police headquarters, Sunday, July 17, 2016, in Baton Rouge, La. (AP Photo/Mike Kunzelman)
PHOTO: Mike Kunzelman/AP
Authorities talk to the driver of a car near an area where several officers were shot while on duty less than a mile from police headquarters, Sunday, July 17, 2016, in Baton Rouge, La. (AP Photo/Mike Kunzelman)
Now playing
03:05
Police: Scene active but contained
Now playing
02:02
Van Jones: Cops, blacks both feel targeted
FILE - In this June 25, 2010, file photo Britain's Prince Harry fires a Colt M4 assault riffle on a United States Military Academy range in West Point, N.Y.  The Defense Department is searching for the successor to the M4 combat rifle and gun makers are loading with lobbyists to win the work. Colt Defense of West Hartford, Conn., had an exclusive deal to provide M4s to the U.S. military and didnt need a hired gun looking out for its interests in Washington. (AP Photo/Chad Rachman, Pool, File)
PHOTO: Chad Rachman/POOL NEW YORK POST/ASSOCIATED PRESS
FILE - In this June 25, 2010, file photo Britain's Prince Harry fires a Colt M4 assault riffle on a United States Military Academy range in West Point, N.Y. The Defense Department is searching for the successor to the M4 combat rifle and gun makers are loading with lobbyists to win the work. Colt Defense of West Hartford, Conn., had an exclusive deal to provide M4s to the U.S. military and didnt need a hired gun looking out for its interests in Washington. (AP Photo/Chad Rachman, Pool, File)
Now playing
01:40
History of the modern assault-style rifle

Story highlights

Ex-Marine who killed three officers in Baton Rouge served a tour in Iraq

He had filled prescriptions for anti-depressants and a sleep aid, source says

(CNN) —  

Gavin Long, the man who killed three law enforcement officers in Baton Rouge, Louisiana, before a SWAT team officer shot him dead – told friends and relatives that he suffered from post-traumatic stress disorder, a source involved in the investigation told CNN’s Chris Cuomo.

Long joined the Marine Corps in 2005, worked as a data network specialist and served in Iraq before being discharged as a sergeant in 2010, according to the U.S. military.

Long had filled a prescription for Ativan, an anti-anxiety drug, as recently as June, said the source, who spoke on condition of anonymity. He also had prescriptions for Valium and the sleep aid Lunesta, the source said.

01:24 - Source: CNN
New video from Baton Rouge police ambush
PHOTO: EBRDA Videos
Now playing
01:24
New video from Baton Rouge police ambush
baton rouge shooting timeline nick valencia dnt_00003328.jpg
baton rouge shooting timeline nick valencia dnt_00003328.jpg
Now playing
01:38
How the Baton Rouge shooting went down
BATON ROUGE, LA - JULY 17:  East Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police.  (Photo by Sean Gardner/Getty Images)
PHOTO: Sean Gardner/Getty Images North America/Getty Images
BATON ROUGE, LA - JULY 17: East Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police. (Photo by Sean Gardner/Getty Images)
Now playing
00:55
Source: Baton Rouge shooter identified
Montrell Jackson slain Baton Rouge officer
PHOTO: Facebook
Montrell Jackson slain Baton Rouge officer
Now playing
01:42
Slain Baton Rouge officer had written emotional post
Governor Louisiana Baton Rouge ambush police killed presser_00004906.jpg
PHOTO: WAFB
Governor Louisiana Baton Rouge ambush police killed presser_00004906.jpg
Now playing
01:20
Governor: The hatred just has to stop
Police gave the name of the man who shot 6 police officers in Baton Rouge on July 17 as Gavin Long. Online, he used the name "Cosmo Setepenra," and posted on a YouTube channel of that name.
PHOTO: YouTube/Cosmo Setepenra
Police gave the name of the man who shot 6 police officers in Baton Rouge on July 17 as Gavin Long. Online, he used the name "Cosmo Setepenra," and posted on a YouTube channel of that name.
Now playing
01:14
Baton Rouge gunman posted this video on social media
PHOTO: Jada Gabriel
Now playing
01:08
New video of gunfire exchange in Baton Rouge
baton rouge police shooting witness bpr_00000000.jpg
PHOTO: WAFB
baton rouge police shooting witness bpr_00000000.jpg
Now playing
02:10
Witness describes Baton Rouge police shootout scene
BATON ROUGE, LA - JULY 17:  Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police.  (Photo by Sean Gardner/Getty Images)
PHOTO: Sean Gardner/Getty Images
BATON ROUGE, LA - JULY 17: Baton Rouge Police officers patrol Airline Hwy after 3 police officers were killed early this morning on July 17, 2016 in Baton Rouge, Louisiana. According to reports, one suspect has been killed while others are still being sought by police. (Photo by Sean Gardner/Getty Images)
Now playing
01:09
Baton Rouge shooter was a former Marine
Superintendent no active shooter Baton Rouge_00002421.jpg
PHOTO: WAFB
Superintendent no active shooter Baton Rouge_00002421.jpg
Now playing
02:26
Police: No active shooter situation in Baton Rouge
Obama Baton Rouge shooting_00043225.jpg
Obama Baton Rouge shooting_00043225.jpg
Now playing
05:00
Obama speaks out on Baton Rouge police shooting
baton rouge pastor mark burns ebof_00001819.jpg
baton rouge pastor mark burns ebof_00001819.jpg
Now playing
01:20
Pastor Mark Burns calls Baton Rouge shooting a tragedy
Authorities talk to the driver of a car near an area where several officers were shot while on duty less than a mile from police headquarters, Sunday, July 17, 2016, in Baton Rouge, La. (AP Photo/Mike Kunzelman)
PHOTO: Mike Kunzelman/AP
Authorities talk to the driver of a car near an area where several officers were shot while on duty less than a mile from police headquarters, Sunday, July 17, 2016, in Baton Rouge, La. (AP Photo/Mike Kunzelman)
Now playing
03:05
Police: Scene active but contained
Now playing
02:02
Van Jones: Cops, blacks both feel targeted
FILE - In this June 25, 2010, file photo Britain's Prince Harry fires a Colt M4 assault riffle on a United States Military Academy range in West Point, N.Y.  The Defense Department is searching for the successor to the M4 combat rifle and gun makers are loading with lobbyists to win the work. Colt Defense of West Hartford, Conn., had an exclusive deal to provide M4s to the U.S. military and didnt need a hired gun looking out for its interests in Washington. (AP Photo/Chad Rachman, Pool, File)
PHOTO: Chad Rachman/POOL NEW YORK POST/ASSOCIATED PRESS
FILE - In this June 25, 2010, file photo Britain's Prince Harry fires a Colt M4 assault riffle on a United States Military Academy range in West Point, N.Y. The Defense Department is searching for the successor to the M4 combat rifle and gun makers are loading with lobbyists to win the work. Colt Defense of West Hartford, Conn., had an exclusive deal to provide M4s to the U.S. military and didnt need a hired gun looking out for its interests in Washington. (AP Photo/Chad Rachman, Pool, File)
Now playing
01:40
History of the modern assault-style rifle

It wasn’t immediately clear whether anyone had diagnosed him with PTSD.