Authorities are investigating whether a fire at a Cary mosque under construction Friday morning was set as an act of vandalism.