Fredrik A. Hansen Jr., 67, a retired Agency for International Development senior foreign service officer who specialized in housing and urban development problems in developing countries, died of cancer Oct. 30 at his home in Weens, Va.

Mr. Hansen, who also owned a home in Washington, worked for AID from 1975 to 1992. Part of that time was spent in Tegucigalpa, Honduras, and Nairobi as the agency's regional director of housing and urban development in Central America and East and Southern Africa.

He also served as AID's deputy director of the housing and urban development office in Washington.

He was born in Brooklyn, N.Y. He served in the Navy from 1952 to 1956, including a tour of duty aboard a heavy cruiser during the Korean War. After graduating with a degree in engineering from Georgia Institute of Technology in 1959, he worked for private companies in the aerospace industry and later joined the Navy Ship Research and Development Center in Washington.

In the early 1970s, he took part in a Housing and Urban Development Department program to use emerging engineering technologies and management systems for the construction of affordable housing.

His marriage to Beryl K. Hansen ended in divorce.

Survivors include his wife of 18 years, Kathleen Hansen of Weems; two daughters from his first marriage, Cheryl Jones of Chaneyville, Md., and Norah Hansen of Portsmouth, N.H.; his father, Fredrik A. Hansen Sr. of Port Washington, N.Y.; two sisters; a brother; and five grandchildren. A son, Fredrik A. Hansen III, died in 1992.