The arrest occurred in Nimes, about 24 miles from the scene of the attack, the Beth Yaacov synagogue in the resort town of La Grande Motte, France’s antiterrorism prosecutor’s office said early Sunday in a statement. Two vehicles exploded outside the synagogue, and the doors to the building were also set on fire, the statement said.

Five people, including the rabbi, were inside the synagogue at the time. No one was killed, but one police officer responding to the explosions was hurt when a gas bottle near one of the vehicles also exploded, the statement said.