The person believed responsible for an attack targeting a Southern California fertility clinic Saturday posted rambling online writings before an explosion that investigators are treating as an act of terrorism, according to a law enforcement official.