Easy answer, you can not.
I assume the detection range is part of the smoke detector family or a separate family?
You could make the range flexible/parametric so that you could cut off corners of the range.
For more complicated rooms (with multiple or odd shaped corners) you probably would have to resort to placing a hatch manually
Louis
Please mention Revit version, especially when uploading Revit files.