Robert X. Boucher, 56, a retired public information officer for the National Security Agency and a former director of community information for Prince George's Community College, died of cardiac arrest Thursday at Suburban Hospital in Bethesda.

A native Washingtonian, Mr. Boucher graduated from Gonzaga High School here. He earned a bachelor's degree from Georgetown University and a master's degree in educational psychology from Catholic University.

Before joining the National Security Agency in the mid-1950s, he taught at Georgetown Preparatory School in Rockville and at Jefferson Junior High School here.

He retired from the NSA in 1975 and then served for about four years as community information director at Prince George's Community College, where he also taught business courses. He taught business courses at Southeastern University and the University of Maryland.

Mr. Boucher also was a management consultant for local automobile firms.

He maintained homes in Lanham and in Ocean City. His memberships included the National Pres Club, the National Association of Government Communicators, the National Association of Retired Federal Employes and the Association of Former Intelligence Officers.

He was a member of the Knights of Columbus and the Holy Name Society at St. Dominic's Catholic Church here.

Survivors include his wife, Rita C., two sons, James and Dennis and two daughters, Celeste and Maureen, all of Lanham and Ocean City; four other daughters, Rose Ghawaly of Chicago, Kathy Szymanski of Falls Church Gerry Bremerman of Gambrills, Md., and Therese Kaufman of Silver Spring, and four grandchildren.