A reserve major in the U.S. Air Force was arrested at Fort McNair in Southwest Washington on Thursday and charged with distribution of child pornography, according to District police.

David Riley, 37, of Tampa, Fla., made an initial appearance in U.S. District Court on Friday and was ordered detained until a preliminary hearing scheduled for Feb. 12. Officer Araz Alali, a D.C. police spokesman, said Riley was arrested at 3 p.m. Thursday in the 500 block of Fifth Avenue SW, which is the address for Lincoln Hall at the military installation.

Alali said Riley is charged with sending images of child pornography over the Internet to an undercover police officer. D.C. police, the FBI and the U.S. Air Force Office of Special Investigations participated in the arrest. Riley is charged under federal statute.

Fort McNair is part of Joint Base Myer-Henderson-Hall, and is on the District’s waterfront where the Potomac and Anacostia rivers meet.

Riley was at Fort McNair to participate in a national security course at the National Defense University, according to Linda J. Card, chief spokeswoman for the U.S. Air Force Office of Special Investigations based in Quantico. She said Riley is an Air Force reservist assigned to MacDill Air Force Base in Tampa. His last day at Fort McNair was to be Feb. 7, when the course ends.

Get updates on your area delivered via e-mail.