A detector for submillimeter gamma cameras