HYANNIS, Mass. (AP) _ A man held three elementary school officials at gunpoint for 30 minutes Monday after they refused to bring his daughter out of class to meet him, police said.

''We don't know ... the exact motive,'' said Barnstable Police Sgt. William Packer. ''The gentleman was in a very distraught condition. Apparently it had something to do with his wife and him ... some kind of argument.

''He went to the school and demanded they bring the girl out of class and return her to him. When they refused, he went out of the school to his van, returned with a shotgun, and held three people for about 30 minutes.''

The man, who was holding the hostages at the entrance to Hyannis East Elementary school, left by himselt about noon and drove away, Packer said.

Jeffrey Hallett, 33, of Hyannis, arrested minutes later about two miles from the school, was arraigned on two counts of assault with a dangerous weapon and was ordered held without bail, Packer said.

Police surrounded the school during the incident but stayed out of sight, Packer said. No shots were fired and nobody was injured, and the approximately 200 pupils in the school continued their classes during the incident, he said.

Packer identified the hostages as the school principal, a counselor and a secretary.He declined to release the name of the child.